Sysprogs forums › Forums › VisualGDB › LD.EXE: Cannot find -lPL_smallLegio
- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by
support.
-
AuthorPosts
-
November 3, 2021 at 03:05 #31679
Matt
ParticipantI am using VisualGDB to compile some ESP32 code. However, when compiling it is complaining about a linker issue.
c:/users/matt/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lPL_smallLegioI am confused because I have the headers and CPP files in my libraries and the project does detect them. To me, it sounds like the CPP isn’t even being compiled, but I am not sure why. Any suggestions would be appreciated.
November 3, 2021 at 08:17 #31681support
KeymasterHi,
This is by design. The project contains an error and VisualGDB displays it. Please fix the errors in the project first, and make sure you can build it outside VisualGDB. Once this is working, the project will work with VisualGDB as well.
November 3, 2021 at 15:17 #31686Matt
ParticipantHi. I can compile the project outside in the Arduino IDE. Would you happen to know how I can fix the error in VisualGDB? Thanks.
November 3, 2021 at 16:42 #31696support
KeymasterThanks for confirming your license key, we have linked it to your forum profile.
Regarding the build error, most likely, the Arduino IDE and VisualGDB ended up using different sets of Arduino platforms or libraries. As multiple components of Arduino ecosystem are managed by different maintainers, some combinations of platform/library versions do produce invalid results.
We have a very detailed tutorial showing how to capture the build command line from both Arduino IDE and VisualGDB, and how to adjust the VisualGDB settings to ensure it uses the same libraries as the Arduino IDE does.
November 3, 2021 at 16:54 #31697Matt
ParticipantI don’t think that is the cause of the problem however. The issue is a poor linker script since the code is being compiled fine. I am getting both
PL_smallEPD.cpp.dandPL_smallEPD.cpp.oin theOutputdirectory.November 3, 2021 at 16:59 #31698Matt
ParticipantNovember 5, 2021 at 18:12 #31727support
KeymasterThis looks like one of your libraries and not a part of VisualGDB. If it works differently in VisualGDB vs. Arduino IDE, most likely you ended up with 2 copies of it having different versions (or manually edited one of them). Our tutorial on diagnosing Arduino issues explains how to troubleshoot exactly this type of problem.
-
AuthorPosts
- You must be logged in to reply to this topic.
