Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Klafke on December 29, 2010, 09:26:30 pm

Title: [Help] ld.exe cannot find -lxml2
Post by: Klafke 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
||=== 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
ld.exe||cannot find -lpthreadGCE2|
||=== Build finished: 1 errors, 0 warnings ===|


And, I have the pthread library
Title: Re: [Help] ld.exe cannot find -lxml2
Post by: MortenMacFly on December 29, 2010, 10:33:33 pm
Code
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.
Title: Re: [Help] ld.exe cannot find -lxml2
Post by: AmiCode 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
Title: Re: [Help] ld.exe cannot find -lxml2
Post by: oBFusCATed on December 28, 2017, 02:33:20 pm
Try what is suggested in these two links:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F