草庐IT

Truncated

全部标签

c++ - 文件无法识别 : File truncated GCC error

我正在尝试使用Eclipse在Linux中编译一个简单的“HelloWorld”程序,但我总是得到这个:Buildingtarget:helloInvoking:GCCC++Linkerg++-o"hello"./src/hello.o./src/hello.o:filenotrecognized:Filetruncatedcollect2:ldreturned1exitstatusmake:***[hello]Error1****BuildFinished****有人知道问题出在哪里吗? 最佳答案 只需删除目标文件。这个错误很可能