Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linking Error How to solve??
#1
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?
Reply
Thanks given by:
#2
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~
Reply
Thanks given by:
#3
just to add something to az's statement/post .. could you please post the code as well?
use the code-tag if you do ^^
[sig placeholder until my new sig is finished]
should totally allow people to be all trolley on their birthday :D
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)