问题
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