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 Problem: ld.exe can't find .o files when compiling (Read 1208 times)
Ben W
Newbies
*
Offline


Posts: 1
Joined: Jul 18th, 2024
Problem: ld.exe can't find .o files when compiling
Jul 18th, 2024 at 1:34am
Print Post  
I updated vMicro after a long hiatus—well, a lot of good that did me. Now suddenly it won't compile anything.

ld.exe is reporting "file not found" for a bunch of .o files, but I've checked the compile folder, and those files are indeed there. It's just not seeing them and I don't know why.

Code
Select All
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O1 -Wl,--gc-sections,--relax "-TC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/imxrt1062.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o .elf" "Spiral01.cpp.o" "Kelvin2RGB-master\Kelvin2RGB.cpp.o" "Tlc5940\Tlc5940.cpp.o" "RunningAverage\RunningAverage.cpp.o" "RunningMedian\RunningMedian.cpp.o" "Entropy\Entropy.cpp.o" "ColorConverter\ColorConverter.cpp.o" "C:\Users\Ben\AppData\Local\Temp\VMBuilds\Spiral01\teensy40\Release/core.a" "-LC:\Users\Ben\AppData\Local\Temp\VMBuilds\Spiral01\teensy40\Release" -larm_cortexM7lfsp_math -lm -lstdc++
ld.exe: cannot find Spiral01.cpp.o: No such file or directory
ld.exe: cannot find Kelvin2RGB-master\\Kelvin2RGB.cpp.o: No such file or directory
ld.exe: cannot find Tlc5940\\Tlc5940.cpp.o: No such file or directory
ld.exe: cannot find RunningAverage\\RunningAverage.cpp.o: No such file or directory
ld.exe: cannot find RunningMedian\\RunningMedian.cpp.o: No such file or directory
ld.exe: cannot find Entropy\\Entropy.cpp.o: No such file or directory
ld.exe: cannot find ColorConverter\\ColorConverter.cpp.o: No such file or directory 



I've cleaned solution, rebuilt project, reinstalled Arduino and Teensyduino, updated VS2022, updated libraries...at a total loss here. The full compiler output with Build properties enabled is attached.

I was able to get it to compile using Arduino 2, but then my code straight up doesn't work (Don't know why this would be) so I have to revert to 1.8.
« Last Edit: Jul 18th, 2024 at 1:37am by Ben W »  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Problem: ld.exe can't find .o files when compiling
Reply #1 - Jul 18th, 2024 at 5:40pm
Print Post  
Thanks for the report, and the brilliant detail!

Could you try the latest version (2024.0718.0) which can be downloaded from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem: ld.exe can't find .o files when compiling
Reply #2 - Jul 29th, 2024 at 8:43pm
Print Post  
We have released an update (24.0722.05). It resolves all path issues and was a confusions between visual micro's, arduino 1x support and arduino 2x support. The compiler speed has also been improved.

The version is available from the visual micro downloads page or via the new releases section of this form. Releases
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem: ld.exe can't find .o files when compiling
Reply #3 - Jul 29th, 2024 at 8:43pm
Print Post  
We have released an update (24.0722.05). It resolves all path issues and was a confusions between visual micro's, arduino 1x support and arduino 2x support. The compiler speed has also been improved.

The version is available from the visual micro downloads page or via the new releases section of this form. It will be pushed to the gallery over the next 48 hours. Releases
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint