Little Fighter Empire - Forums
Linking Error How to solve?? - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: General Zone (https://lf-empire.de/forum/forumdisplay.php?fid=23)
+--- Forum: Programming (https://lf-empire.de/forum/forumdisplay.php?fid=50)
+--- Thread: Linking Error How to solve?? (/showthread.php?tid=3839)



Linking Error How to solve?? - mickyching - 10-28-2009

Hello Everyone,

I need help.I have some linking error in my c++ program.
I am working on c++ on Linux.I have included all need header files required.
But there is a problem of linking error.
How to solve it?

Can anyone help me out??How to solve this linking error?


RE: Linking Error How to solve?? - Azriel - 10-28-2009

what libraries are you trying to link in? you have to write it for the compiling line. e.g. to link in the math library, you'd go

g++ mysource.c -o myprog -lm

"-lm" means link the math library)

to link multiple libraries, just have a few of the -lX commands where X is the library's "name" (you have to search google for the letters to use, I haven't done much c++)



Azriel~


RE: Linking Error How to solve?? - The Lost Global Mod - 10-28-2009

just to add something to az's statement/post .. could you please post the code as well?
use the code-tag if you do ^^