Home » Community » Newbie corner » Linking to external library (Static versus Dynamic linkage?)
Linking to external library [message #60338] |
Sun, 17 December 2023 13:40 |
EspressoMan
Messages: 13 Registered: April 2023 Location: New Zealand
|
Promising Member |
|
|
I've spent a fair bit of the weekend trying to figure out why I was getting continual linking error with my external library. I finally got it resolved after going down numerous rabbit holes trying to discover the correct combination of compiler, debug and linker switches with LLVM, all to little or no avail.
Then I searched the forum and found that someone else had chanced upon the solution just over 6 years ago.
https://www.ultimatepp.org/forums/index.php?t=tree&th=10 140&.html
Now I'm not saying there is a bug per se, but there is certainly much confusion surrounding this topic, especially for newbies. I could be wrong but I get the feeling that it's not a popular topic, possibly due to the vast number of rabbit holes that could ensue. A Pandoras box of headaches . So I removed my library from the "Static Libraries" section of the Package Organizer and reinserted it as a plain vanilla library, whatever that means. Et voila, it worked instantly. My question is: How is my library linked to my U++ project - Statically or Dynamically?
https://www.ultimatepp.org/app$ide$Guide_en-us.html
[Updated on: Sun, 17 December 2023 13:54] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon May 06 04:55:41 CEST 2024
Total time taken to generate the page: 0.03244 seconds
|