News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[Help] ld.exe cannot find -lxml2

Started by Klafke, December 29, 2010, 09:26:30 PM

Previous topic - Next topic

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:

||=== 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 :

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



And, I have the pthread library

MortenMacFly

Quote from: Klafke on December 29, 2010, 09:26:30 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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

(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!]