用gcc编译器,编辑cpp文件的bash: ./check.o: cannot execute binary file错误

来源:互联网 发布:模糊控制算法 c语言 编辑:程序博客网 时间:2024/06/13 03:43
方法:g++ -o test test.cpp 或者gcc -o test test.cpp 也就是不用-c 选项,保证通过,在google,baidu,bing上搜了好长时间终于在一个犄角旮旯里找到了最终的解决方案,希望碰到这样问题的童鞋们,能够尽快解决这个问题 
0 0
原创粉丝点击