我包括这头到我自己的一个:http://codepad.org/lgJ6KM6b
当我整理我开始象这样的错误:
奇怪的重新定义符号
CMakeFiles/bin.dir/SoundProjection.cc.o: In function `Gnuplot::reset_plot()': /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/new:105: multiple definition of `Gnuplot::reset_plot()' CMakeFiles/bin.dir/main.cc.o:project/gnuplot-cpp/gnuplot_i.hpp:962: first defined here CMakeFiles/bin.dir/SoundProjection.cc.o: In function `Gnuplot::set_smooth(std::basic_string, std::allocator > const&)': project/gnuplot-cpp/gnuplot_i.hpp:1041: multiple definition of `Gnuplot::set_smooth(std::basic_string, std::allocator > const&)' CMakeFiles/bin.dir/main.cc.o:project/gnuplot-cpp/gnuplot_i.hpp:1041: first defined here CMakeFiles/bin.dir/SoundProjection.cc.o:/usr/include/eigen2/Eigen/src/Core/arch/SSE/PacketMath.h:41: multiple definition of `Gnuplot::m_sGNUPlotFileName'
我知道这很难在这个烂摊子看,但看重新定义正在发生。它们发生在像/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/new:105这样的文件中。新操作员如何获取有关gnuplot标题的信息?我甚至无法编辑该文件。这怎么可能呢?我甚至不知道如何开始调试。我希望我已经提供了足够的信息。我无法在一个小型项目中重现这一点。我主要是在寻找如何找出这种情况发生的技巧,以及如何追踪。
谢谢。
其实sellibitze看起来有正确答案(+1)。 – FireAphis 2010-04-21 06:59:24