c++ - 使用 G++ 构建时出现错误 1

标签 c++ compiler-errors g++

我正在使用 eclipse Junior 并构建我的 C++ 程序。 控制台中的命令行如下:

make all 
Building file: ../src/misc/bt_misc.cpp
Invoking: GCC C++ Compiler

g++ -DNDEBUG=1 -DEPOLL=1 -D__GXX_EXPERIMENTAL_CXX0X__ -I"/home/adtech/workspace/mtracker/src/misc" -I"/home/adtech/workspace/mtracker/src/Tracker" -I"/home/adtech/workspace/mtracker/src/misc/xbt" -I/usr/include -I/usr/lib64/mysql -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -MMD -MP -MF"src/misc/bt_misc.d" -MT"src/misc/bt_misc.d" -o "src/misc/bt_misc.o" "../src/misc/bt_misc.cpp"

我在编译阶段没有报错,不幸的是,最后遇到如下错误:

make: *** [src/Tracker/server.o] Error 1

你们能帮我解释一下这个错误吗?非常感谢

最佳答案

那个错误意味着它执行的命令(大概是 g++ 在构建 server.o 时)遇到了错误。 向上滚动 并确保没有任何错误。如果您并行运行多个作业,错误可能不会出现在最后。

关于c++ - 使用 G++ 构建时出现错误 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14207938/

相关文章:

compiler-errors - 来自gtest-all.cc的Google测试编译错误

c++ - 特征样条插值 - 如何在任意点 x 处获得样条 y 值?

c++ - 我收到以下错误 : [Warning] multi-character character constant

c++ - GCC 交叉编译为 i586 架构 (Vortex86DX)

java - Android ADK错误: There are no JREs installed in the workspace that are strictly compatible with this environment

Java 测试程序存在有关私有(private)访问的错误

c++ - G++ log10(浮点) log10(双)

linux - 为多个 Linux 发行版构建 Qt 应用程序

c++ - 如何将匿名 C++ union 与匿名结构一起使用

c++ - 在哪里可以找到 C++ 的 ZwCreateFile 示例?