Object file not created after building

☆樱花仙子☆ 提交于 2019-12-11 22:15:57

问题


I am getting an error when I am compiling my project on Eclipse Kepler. The project builds successfully, but the object is unsuccessfully created. I am getting the following output on my console

23:13:32 **** Build of configuration Debug for project Dictionary ****
make all 
Building file: ../src/Diction.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MM -MMD -MP -MF"src/Diction.d"       -MT"src/Diction.d" -o "src/Diction.o" "../src/Diction.cpp"
Finished building: ../src/Diction.cpp

Building target: Dictionary
Invoking: GCC C++ Linker
g++  -o "Dictionary"  ./src/Diction.o   
./src/Diction.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [Dictionary] Error 1

23:13:32 Build Finished (took 69ms)

Can someone please tell me what am I doing wrong??

来源:https://stackoverflow.com/questions/26205011/object-file-not-created-after-building

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!