Compiler flags

S

Stephen Sprunk

spasmous said:
spasmous a écrit : ....
Thanks - I didn't realize c++ was an alias of gcc. Sometimes, you
know,
you have to compile someone else's programs on a platform that you
don't know. man c++ was my first try, then google on Linux c++
compiler flags. Neither produced anything obviously useful.

You still haven't explained why you're trying to compile .c files with a
C++ compiler. If it's .c, use gcc (or cc). If it's .cc or .cpp, use
g++ (or c++). C and C++ are different languages, and if you use the
wrong compiler (or linker) you'll have all kinds of headaches.

S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top