- Dec 2, 2002
- 1,916
- 0
- 0
Originally posted by: Ameesh
g++ calls gcc and uses the c++ linker and calling gcc directly will use the C linker
but dont bother asking what the differences are between the linkers, i know some symbols are named differntly but i dont see how anyone would care bout that
just use gcc
Originally posted by: Heisenberg
gcc is the standard C compiler and g++ is the C++ compiler.
Originally posted by: johnnytightlips
Originally posted by: Ameesh
g++ calls gcc and uses the c++ linker and calling gcc directly will use the C linker
but dont bother asking what the differences are between the linkers, i know some symbols are named differntly but i dont see how anyone would care bout that
just use gcc
Thanks for the help. Actually for my purposes, g++ worked and gcc didn't. I want to know why. Thanks!
I've never tried as I do all my work in fortran and haven't used c for years. I just always think of them that way, although like you said, they just vary by the linker they call.Originally posted by: Ameesh
Originally posted by: Heisenberg
gcc is the standard C compiler and g++ is the C++ compiler.
i know you can compile c++ with gcc
Originally posted by: johnnytightlips
Even when I use the -x c++ option I get a ton of linking errors. g++ alone returns none. Is there anything "bad" or "wrong" about using g++?
Originally posted by: Ameesh
Originally posted by: johnnytightlips
Even when I use the -x c++ option I get a ton of linking errors. g++ alone returns none. Is there anything "bad" or "wrong" about using g++?
try
-lstdc++ -lm
Originally posted by: johnnytightlips
Originally posted by: Ameesh
Originally posted by: johnnytightlips
Even when I use the -x c++ option I get a ton of linking errors. g++ alone returns none. Is there anything "bad" or "wrong" about using g++?
try
-lstdc++ -lm
Hey, what does that do?
Originally posted by: johnnytightlips
Originally posted by: Ameesh
Originally posted by: johnnytightlips
Even when I use the -x c++ option I get a ton of linking errors. g++ alone returns none. Is there anything "bad" or "wrong" about using g++?
try
-lstdc++ -lm
Hey, what does that do?
Originally posted by: Ameesh
g++ calls gcc and uses the c++ linker and calling gcc directly will use the C linker
but dont bother asking what the differences are between the linkers, i know some symbols are named differntly but i dont see how anyone would care bout that
just use gcc
btw: that is what i have heard i make no claims on the accuracy of the above statement
