精华 C++ -- 002

maybe u guys right.:)
here is something i found on the net
Jaya_Kumari wrote:

> I wanted to know if there is an option with g++ compiler where I can
> compile the C files,and the compiler treats these files as C files
> and not C++ files.

Place '-x c' before any C filenames on the command line (see "g++
--help"). However, unless you're linking too, there is no difference
between 'gcc' and 'g++ -x c'.

http://www.faqchest.com/prgm/gcc-l/gcc-02/gcc-0201/gcc-020103/gcc02011502_02890.html
 
ha, I'm just a few seconds faster than majia041 :D

I got it from "man g++"
 
那最后看来,还是啊呆说的对。啊呆,我好崇拜你啊。
 
后退
顶部