__do_global_dtors_aux用C [英] __do_global_dtors_aux in C
问题描述
我编译支持MIPS嵌入式系统的C程序。
GCC在不断坚持的东西像__do_global_dtors_aux,frame_dummy,__do_global_ctors_aux。
我怎样才能避免?
I'm compiling a C program for a MIPS embedded system. GCC keeps sticking in stuff like __do_global_dtors_aux, frame_dummy, __do_global_ctors_aux. How can I avoid that?
解决:我只是通过传递-nostdlib海湾合作委员会固定了。傻我忘记了。
Resolved: I just "fixed" it by passing -nostdlib to gcc. Silly me for forgetting that
推荐答案
这听起来像你正在使用C ++而不是C.也许你不小心资本上的文件扩展名,所以他们 xxx.C
而不是 xxx.c
?您也可以尝试 -xç
让GCC对待文件保存为C无论扩展的。
It sounds like you're using C++ instead of C. Perhaps you've accidentally capitalized the extension on your files, so they're xxx.C
instead of xxx.c
? You could also try -x c
to get gcc to treat the file as C regardless of extension.
这篇关于__do_global_dtors_aux用C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!