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 ld.exe error (Read 888 times)
Fabri
Newbies
*
Offline


Posts: 4
Joined: Oct 10th, 2024
ld.exe error
Oct 10th, 2024 at 3:57pm
Print Post  
Hi, 
I updated from 2024_0102_2203 in VS2022 to latest realease 2024_0926_2201 and I have errore of ld.exe. It seems compiler and linker  don't find the arduino libraries. After get back rto old relase VS2022 compile file correctly in a very short time. Has anyone had the same problem?

Thanks for help.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: ld.exe error
Reply #1 - Oct 10th, 2024 at 4:03pm
Print Post  
Can you attach the complete build output with the options enabled shown at the top of the page?

If you can do this for the working and broken examples it would help us understand the issue greatly.
  
Back to top
IP Logged
 
Fabri
Newbies
*
Offline


Posts: 4
Joined: Oct 10th, 2024
Re: ld.exe error
Reply #2 - Oct 10th, 2024 at 6:18pm
Print Post  
Hello, I attached text file with output information.

Let me know if this you are asking.

Regards,
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: ld.exe error
Reply #3 - Oct 10th, 2024 at 6:41pm
Print Post  
Thanks that's great, could you confirm your project has a structure as shown below?

AWS_ACQ\AWS_ACQ.ino
AWS_ACQ\LIB
AWS_ACQ\LIB\pubsubclient-2.8\
AWS_ACQ\LIB\ModBusMaster232\
AWS_ACQ\LIB\EspSoftwareSerial-8.0.3\
« Last Edit: Oct 10th, 2024 at 6:41pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Fabri
Newbies
*
Offline


Posts: 4
Joined: Oct 10th, 2024
Re: ld.exe error
Reply #4 - Oct 10th, 2024 at 6:49pm
Print Post  
Yes, inside Project AWS_ACQ I have some local libraries defined in project path \LIB.

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


Posts: 2704
Joined: Feb 13th, 2019
Re: ld.exe error
Reply #5 - Oct 11th, 2024 at 12:09pm
Print Post  
Thanks for the update.

Can you try changing the Tools > Options > vMicro > Compatibility > Compile ALL Project Folder Sources to "False".

Then if you build the project again, does it compile and link successfully?
  
Back to top
IP Logged
 
Fabri
Newbies
*
Offline


Posts: 4
Joined: Oct 10th, 2024
Re: ld.exe error
Reply #6 - Oct 12th, 2024 at 6:26am
Print Post  
Hello Simon,
Yes now it's work and compile. Many Thanks.

Another question:
It's takes alot of time to compile, is there any way to speed-up process ?

Thanks,
« Last Edit: Oct 12th, 2024 at 2:12pm by Fabri »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ld.exe error
Reply #7 - Oct 13th, 2024 at 12:58am
Print Post  
The compile should be fast if little code has changed. 

Please provide the information requested in yellow near the top of the page so that we can see your config and also what is being recompiled.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint