Mohsen Pahlevanzadeh <[email protected]> writes: > How do i write C++ with gcc instead of g++?
The question is not appropriate for the mailing list [email protected]. It is appropriate for [email protected]. Please take any followups to gcc-help. Thanks. There is no particular reason to use gcc instead of g++. If you really want to do so, there are two easy ways: 1) name your files with an extension of .cc rather than .c; 2) use the -x c++ option. Note that if you link with gcc, you will need to explicitly use -lstdc++. Ian
