Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Teensy3.1 - Build failed with VS2015 but OK with Arduino (Read 4914 times)
SadE
Newbies
*
Offline


Posts: 3
Joined: May 13th, 2016
Teensy3.1 - Build failed with VS2015 but OK with Arduino
May 13th, 2016 at 6:56pm
Print Post  
Hi,

I have the very last version of VM + VS2015 and I cannot build my project , I get (verbose mode) :

Code
Select All
Compiling debug version of 'EM4100' for 'Teensy 3.2 / 3.1'
Build folder: file:///C:/Users/Yann/AppData/Local/Temp/VMicroBuilds/EM4100/teensy31
Additional Defines: VM_DEBUG;VM_DEBUG_ENABLE 1;VM_DEBUG_BANDWIDTH_THROTTLE_MS 50;VM_DEBUGGER_TYPE_HARDWARESERIAL 0;VM_DEBUGGER_TYPE_SOFTWARESERIAL 1;VM_DEBUGGER_TYPE_FASTSERIAL 2;VM_DEBUGGER_TYPE_USB 3;VM_DEBUGGER_TYPE_TEENSY 4;VM_DEBUGGER_TYPE_UART 5;VM_DEBUGGER_TYPE_USART 6;VM_DEBUGGER_TYPE_USBSERIAL 7;VM_DEBUGGER_TYPE_TTYUART 8;VM_DEBUGGER_TYPE_NET_CONSOLE 9;VM_DEBUGGER_TYPE_Uart 10;VM_DEBUGGER_TYPE_COSA 11;VM_DEBUGGER_TYPE_CDCSerialClass 12;VM_DEBUGGER_TYPE VM_DEBUGGER_TYPE_TEENSY;VM_DEBUG_BREAKPAUSE;
Architecture Tools: F:\Developpement\Arduino_168\Arduino\hardware\teensy/../tools/
Sketchbook: file:\\\C:\Users\Yann\Documents\Arduino
Sketch Include Paths
Include Path 'C:\Users\Yann\Documents\Arduino\EM4100'
Core Include Paths
Include Path 'F:\Developpement\Arduino_168\Arduino\hardware\teensy\avr\cores\teensy3'
Library Include Paths (1)
eabi-g++" -E -CC -x c++ -w  -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=128 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"F:\Developpement\Arduino_168\Arduino\hardware\teensy\avr\cores\teensy3" -I"F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers\VM_DBG" -I"F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers" "C:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31\EM4100.cpp" -o "nul"
Build Core Paths: F:\Developpement\Arduino_168\Arduino\hardware\teensy\avr\cores\teensy3
Using library VM_DBG version 0.0.0 in folder F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers\VM_DBG
eabi-g++" -c -O -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=128 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"F:\Developpement\Arduino_168\Arduino\hardware\teensy\avr\cores\teensy3" -I"F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers\VM_DBG" -I"F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers" -I"F:\Developpement\Arduino_168\Arduino\libraries" -I"F:\Developpement\Arduino_168\Arduino\hardware\teensy\avr\libraries" -I"C:\Users\Yann\Documents\Arduino\libraries" "F:\Developpement\Visual Studio 2015\Common7\IDE\Extensions\34si153x.3pd\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp" -o .o" -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_TEENSY -DVM_DEBUG_BREAKPAUSE
Using previously compiled file: C:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31\EM4100.cpp.o
eabi-gcc" -O -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=67751290 256.ld" -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31/EM4100.ino.elf" "C:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31\EM4100.cpp.o" .o" "C:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31/core.a" "-LC:\Users\Yann\AppData\Local\Temp\VMicroBuilds\EM4100\teensy31" -larm_cortexM4l_math -lm
core.a(main.cpp.o)*:In function `main
main.cpp:undefined reference to `setup
main.cpp:undefined reference to `loop
collect2.exe*:error: ld returned 1 exit status
Error creating .elf 



I can compile the same project without any error with Arduino 1.6.8/1.6.9  Sad
« Last Edit: May 14th, 2016 at 3:10pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy3.1 - Build failed with VS2015 but OK with Arduino
Reply #1 - May 14th, 2016 at 3:18pm
Print Post  
Hi,

A few questions/requests

1) Confirm download location for the teensy install. I tried to install into 1.6.9 but it refuses because the release only supports up to version 1.6.8

2) Switch on "tools>options>visual micro>compiler>show build properties". Click Build>Clean and then build and email the output to info[at]visualmicro.com.

3) If possible send me a zip of your project folder which might save some testing time.

4) Confirm which version of Visual Micro you are using from "tools>extensions and updates>arduino ide for visual studio"

Thanks

  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy3.1 - Build failed with VS2015 but OK with Arduino
Reply #2 - May 14th, 2016 at 5:25pm
Print Post  
More ...

I just tested with the teensy beta for 1.6.9 and it works okay.

You problem seems to be that the setup() and loop() methods are missing from the em4100.INO

I expect you will say that the methods exist which is why I asked to see the project sources if possible.

The only way I can think this could happen is if you have an empty EM4100.CPP in the project directory?

  
Back to top
IP Logged
 
SadE
Newbies
*
Offline


Posts: 3
Joined: May 13th, 2016
Re: Teensy3.1 - Build failed with VS2015 but OK with Arduino
Reply #3 - May 15th, 2016 at 12:07pm
Print Post  
Tim@Visual Micro wrote on May 14th, 2016 at 5:25pm:
More ...

I just tested with the teensy beta for 1.6.9 and it works okay.

You problem seems to be that the setup() and loop() methods are missing from the em4100.INO

I expect you will say that the methods exist which is why I asked to see the project sources if possible.

The only way I can think this could happen is if you have an empty EM4100.CPP in the project directory?



Thanks for the help !
It seems that VisualMicro does not like to have a .cpp  file with the same name than the main .ino file.

I have a EM4100.cpp for a class definition and EM4100.ino with the sketch itself . If I renamed my class files it's compiling well   Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy3.1 - Build failed with VS2015 but OK with Arduino
Reply #4 - May 15th, 2016 at 12:35pm
Print Post  
Arduino ide the same 😊
  
Back to top
IP Logged
 
SadE
Newbies
*
Offline


Posts: 3
Joined: May 13th, 2016
Re: Teensy3.1 - Build failed with VS2015 but OK with Arduino
Reply #5 - May 16th, 2016 at 7:39am
Print Post  
Hmm strange at least, because before renaming correctly the class files , It compiled OK with Arduino IDE  Huh
« Last Edit: May 16th, 2016 at 7:40am by SadE »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint