Author Topic: [Help] ld.exe cannot find -lxml2  (Read 5986 times)

Klafke

  • Guest
[Help] ld.exe cannot find -lxml2
« on: December 29, 2010, 09:26:30 pm »
Hello, I have codeblocks 8.02 Mingw running on windows XP sp3 and when I try to compile a source the following error shows up:

Code: [Select]
||=== destinyemu, Build ===|
ld.exe||cannot find -lxml2|
||=== Build finished: 1 errors, 0 warnings ===|

What could I do to fix that error ?


Thanks.

Edit :

Ok, I fixed that error but now shows up this one :

Code: [Select]
ld.exe||cannot find -lpthreadGCE2|
||=== Build finished: 1 errors, 0 warnings ===|


And, I have the pthread library
« Last Edit: December 29, 2010, 09:52:15 pm by Klafke »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9451
Re: [Help] ld.exe cannot find -lxml2
« Reply #1 on: December 29, 2010, 10:33:33 pm »
Code: [Select]
ld.exe||cannot find -lpthreadGCE2|[...]
And, I have the pthread library
...but surely not setup the linker directories in the project settings accordingly. You need to tell the linker where the library is.

BTW: I strongly suggest you first try from the command line. It seems you are missing some basics in understanding and setting up a compiler / linker.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline AmiCode

  • Single posting newcomer
  • *
  • Posts: 5
Re: [Help] ld.exe cannot find -lxml2
« Reply #2 on: December 28, 2017, 12:25:39 pm »
Sorry for resurrecting this old thread.

I have the very same problem, using codeblocks and mingw, trying to use the xmllib2

ld.exe cannot find the -lxml2

Could someone give me an hint?

thank you very much.

Kind regards

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10725
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]