This is incredibly annoying, but I can't link anything I make using ld, I get many many errors. I can compile the samples (using the makefiles), and I noticed that the makefile uses g++ to like the .o file to the libraries. This is incredibly frustrating, and I am trying not to explode in rage... all I want to do is make a simple freaking program!!! .
Why do the samples use G++ to link, when LD was specifically created for linkage??? Is there any way to get LD to work, or do I have to abandon Code::Blocks (since it uses LD)?
Please, if you have an mercy in your soul, please help me!
Linking with LD and not G++ (Mingw)
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
It uses ld in the process... You can even pass options to ld with the -Wl option, e.g -Wl,-rpath,/path/to/dir
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
That's just what I was about to replyionstream wrote:Ah never mind, my libraries were wrong, and Code::Blocks uses g++ for linkage.
Absolutely. Libraries on which other libraries depend on, should be first (I hope this makes sense).ionstream wrote:But I have one more question, does it matter what order the program links to the libraries?
Yiannis.