User forums > General (but related to Code::Blocks)
[Help] ld.exe cannot find -lxml2
(1/1)
Klafke:
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 ===|
--- End code ---
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 ===|
--- End code ---
And, I have the pthread library
MortenMacFly:
--- Quote from: Klafke on December 29, 2010, 09:26:30 pm ---
--- Code: ---ld.exe||cannot find -lpthreadGCE2|
--- End code ---
[...]
And, I have the pthread library
--- End quote ---
...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.
AmiCode:
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
oBFusCATed:
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
Navigation
[0] Message Index
Go to full version