Hello,
I have split a small test program into three files (plus header files).
The CMakeLists.txt is the following :
cmake_minimum_required (VERSION 2.6)
project (Zou)
add_library(Matrix matrix.cpp)
add_library(Pose pose.cpp)
add_executable (Zou main.cpp)
link_libraries(Zou Pose Matrix)
When running (cmake and then) make, I get the following error :
[...]
Linking CXX executable Zou
CMakeFiles/Zou.dir/main.cpp.o: In function `main':
main.cpp:(.text+0xb7): undefined reference to `Triangle::Triangle()'
[...]
Though, Triangle::Triangle() is adequately coded in pose.cpp. What does
go wrong ?
Thank you,
Alexandre
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake