gcc and g++

S

sudi

Hi,
As the "man page" mentions, g++ is nothing but gcc with all the C++ options.
Is there a way I can check what the actual "gcc" command executed when
I type "g++ mycode.cpp" ?

Thanks,
Sudi
 
R

Rolf Magnus

Particular build tools/compilers are off-topic in comp.lang.c++. As the
"lang" in the name suggests, this newsgroup is only about the language
itself. A better place for asking g++ questions is gnu.g++.help.
Hi,
As the "man page" mentions, g++ is nothing but gcc with all the C++
options. Is there a way I can check what the actual "gcc" command
executed when I type "g++ mycode.cpp" ?

Yes. Add -v to the command line. "g++ --help" could have told you that,
too.
 
T

Thomas Matthews

sudi said:
Hi,
As the "man page" mentions, g++ is nothing but gcc with all the C++ options.
Is there a way I can check what the actual "gcc" command executed when
I type "g++ mycode.cpp" ?

Thanks,
Sudi

Also try "which g++", if your operating system supports the "which"
command.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top