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 [Solved] Build error "collect2.exe" using adafruit_avr_protrinket3ftdi VS2015 VM1604.18.0 (Read 2620 times)
PatrickR
Newbies
*
Offline


Posts: 8
Joined: Apr 26th, 2016
[Solved] Build error "collect2.exe" using adafruit_avr_protrinket3ftdi VS2015 VM1604.18.0
Apr 26th, 2016 at 2:55pm
Print Post  
Hello all,

I got the error
collect2.exe*:error: ld returned 1 exit status
Error creating .elf


Do I have to add a parameter for the build process ?
Or do I have to activate or deactivate something ?

Please find attached the report message.

Many thanks,
Patrick
« Last Edit: Apr 27th, 2016 at 11:30am by PatrickR »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error "collect2.exe" using adafruit_avr_protrinket3ftdi VS2015 VM1604.18.0
Reply #1 - Apr 26th, 2016 at 3:10pm
Print Post  
Hi,

It looks like you have timeout.cpp included twice in the project

You can see both of them below in your output.

Can you explain where you believe the timeout.cpp code is located?

Is it possible you added a short cut to the timeout code for the project for reference purposes? If so then remove it from the project and add it to a new folder in the Solution Explorer. If timeout is a library then simply click "vMicro>show hidden files" to see the lib code in the current project in an area that will be ignored by the compiler. 

Thanks

Quote:
"P:\Programmierung\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o _adafruit_avr_protrinket3ftdi/sketch_Blink_Test_Timeout.ino.elf" _adafruit_avr_protrinket3ftdi\sketch_Blink_Test_Timeout.cpp.o" _adafruit_avr_protrinket3ftdi\timeout\timeout.cpp.o" _adafruit_avr_protrinket3ftdi\VM_DBG\VM_DBG.cpp.o" _adafruit_avr_protrinket3ftdi\ProjLinked\timeout.cpp.o" _adafruit_avr_protrinket3ftdi/core.a" it_adafruit_avr_protrinket3ftdi" -lm
« Last Edit: Apr 26th, 2016 at 3:12pm by Tim@Visual Micro »  
Back to top
IP Logged
 
PatrickR
Newbies
*
Offline


Posts: 8
Joined: Apr 26th, 2016
Re: Build error "collect2.exe" using adafruit_avr_protrinket3ftdi VS2015 VM1604.18.0
Reply #2 - Apr 27th, 2016 at 11:29am
Print Post  
Hello Tim,

great. This was the solution. 

Many thanks.

Perfect.

Best wishes,
Patrick.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint