我包括這頭到我自己的一個: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