STL program
-
It's there someone that know how can I compile a program that uses STL on an LINUX system ( I have gcc 2.96 and it seams that it never heard about STL :) ) Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
If your compiler is so out of date as to not provide STL, try www.stlport.com, they may have a version compatile with your (non-C++) compiler. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
It's there someone that know how can I compile a program that uses STL on an LINUX system ( I have gcc 2.96 and it seams that it never heard about STL :) ) Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
-
Invoke the compiler as g++ instead of gcc. Make sure you have the gcc-c++ and libstdc++-devel packages installed.
-
Thanx a lot man ... the g++ work ... but can you tel me the diference betwen gcc and g++?? Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
gcc is the GNU C compiler g++ is the GNU C++ compiler stl is C++ and not C Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Thanx a lot man ... the g++ work ... but can you tel me the diference betwen gcc and g++?? Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
-
gcc is the GNU C compiler g++ is the GNU C++ compiler stl is C++ and not C Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
I've compiled with gcc programs in C++ ... but it seams that gcc dosen't know templates Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
Orbital^ wrote: I've compiled with gcc programs in C++ ... but it seams that gcc dosen't know templates I just checked out the man pages. Apparently they are eboth same except for this difference :-
gcc assumes preprocessed (.i) files are C and assumes C
style linking.g++ assumes preprocessed (.i) files are C++ and assumes
C++ style linking.Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.