This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: string


Hi Mohammad,

>Whats wrong?

You should use the GCC C++ compiler/linker toolchain instead of the GCC C compiler/linker toolchain.

/usr/bin/g++ -o test test.cpp

HTH,
--Eljay

PS:  when you run it, you'll need to type...
./test
...so you don't get /bin/test by accident.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]