On 3/31/07, Filipe Sousa <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
> hi,
> I am using cmake and some library of boost on a linux box. When I use
> the boost::shared_ptr, everything is fine. But when I try to
> #include <boost/filesystem/operations.hpp>
> #include <boost/filesystem/path.hpp>,
> the cmake generates lots of "undefined reference to
> 'boost::filesystem::...' errors. Is there something wrong with the
> FindBoost.cmake? Why I still can use part of the boost like
> boost::shared_ptr? Thanks for help.
> zl2k
most of boost are header files only, but boost filesystem has it's own
library that you must link against you program. that's why you have
undefined references.
Filipe Sousa
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
Could you give me more guidance on how to do that? Do I need to change
the FindBoost.cmake so that let it find the boost/filesystem? Or
should I change the CMakeList.txt? Thanks again.
zl2k
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake