Linux中gcc,g++常用编译选项 -x language filename 设定文件所使用的语言,使后缀名无效,对以后的多个有效.也就是根据约定,C语言的后缀名称是.c的,而C++的后缀名是.C或者.cpp,如果你很个性,决定你的C代码文件的后缀名是.pig 哈哈,那你就要用这个参数,这个参数对他后面的文件名都起作用,除非到了下一个参数的使用。可以使用的参数有下面的这些: `c', `objective-c', `c-header', `c++', `cpp-output', `asse...
by ToBeBetter - Linux文档专区 - 2007-12-26 16:41:35 阅读(769) 回复(0)
Linux中gcc,g++常用编译选项 -x language filename 设定文件所使用的语言,使后缀名无效,对以后的多个有效.也就是根据约定,C语言的后缀名称是.c的,而C++的后缀名是.C或者.cpp,如果你很个性,决定你的C代码文件的后缀名是.pig 哈哈,那你就要用这个参数,这个参数对他后面的文件名都起作用,除非到了下一个参数的使用。可以使用的参数有下面的这些: `c', `objective-c', `c-header', `c++', `cpp-output', `assembler'...
在SCO下我用eslq -g编译,但是却无法用dbxtra进行调试,显示如下出错信息.请问-g选项到底什么作用?我要怎样才能用dbxtra调试ec程序,谢谢大家 [code] Reading symbols from DLL: /lib/libprot.so.1... Readingsymbolsfrom DLL: /lib/libprot.so.1...warning: Object file cont ins no symbolic information Reading symbols from DLL: /usr/lib/libc.so.1... Readingsymbolsfrom DLL: /usr/lib/libc.so.1...warning:O...
xxx]$ g++ -v xxx]$ xxxxxx gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 项目中有一个编译选项 -Wno-invalid-offsetof, 这个选项何用? 为什么make时总提示 cc1plus: unrecognized option '-Wno-invalid-offsetof'?
gnu gcc: [armlinux@lqm armlinux]$ man gcc gCC(1) gNU gCC(1) NAME gcc - gNU project C and C++ compiler 但是根据下面说明,与其说gnu gcc是gnu项目的编译器,不如说它是gnu项目中的编译系统。 DESCRIPTION When you invoke gCC, it normally does preprocessing, compilation, assembly and linking. The ``overall options'' allow you to stop this process at an intermediate...
xxx]$ g++ -v xxx]$ xxxxxx gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 项目中有一个编译选项 -Wno-invalid-offsetof, 这个选项何用? 为什么make时总提示 cc1plus: unrecognized option '-Wno-invalid-offsetof'?