您的位置:首页 > 运维架构

物化视图常用维护操作

2012-09-03 11:30 281 查看
gcc和链接选项的使用
在gcc中使用ld链接选项时,需要在选项前面加上前缀-Wl(是字母l,不是1,我曾多次弄错),以区别不是编译器的选项。 if the linker is being invoked indirectly, via a compiler driver(e.g. gcc) then all the linker command line options should be prefixed by -Wl,(or whatever is appropriate for the particular compiler driver) like this:
1
gcc-Wl,--start-group foo.o bar.o -Wl,--end-group
gcc-c A.c -DXXX2 -Wall -DLinuxX86 -m32 -DDEBUG -g -DXXX -lSDL-Wl,--rpath-link,/usr/lib
Thisis important, because otherwise the compiler driver program may silently dropthe linker options, resulting in a bad link.

再要:http://my.oschina.net/shelllife/blog/115958
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: