__do_global_dtors_aux in C
I'm compiling a C program for a MIPS embedded system. GCC keeps stick开发者_如何学编程ing in stuff like __do_global_dtors_aux, frame_dummy, __do_global_ctors_aux. How can I avoid that?
Resolved: I just "fixed" it by passing -nostdlib to gcc. Silly me for forgetting that
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.
精彩评论