构建后未创建对象文件

时间:2014-10-05 17:01:17

标签: eclipse gcc g++ eclipse-cdt

我在Eclipse Kepler上编译项目时遇到错误。 项目已成功构建,但对象未成功创建。 我在我的控制台上获得以下输出

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)

有人可以告诉我,我做错了什么吗?

0 个答案:

没有答案