开发者

__do_global_dtors_aux in C

开发者 https://www.devze.com 2022-12-28 21:26 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消