__do_global_dtors_aux用C [英] __do_global_dtors_aux in C

查看:620
本文介绍了__do_global_dtors_aux用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆