[CMake] help with FindBoost.cmake
Filipe Sousa
natros at gmail.com
Sat Mar 31 06:35:25 EST 2007
kdsfinger at gmail.com 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070331/70be49d3/signature.pgp
More information about the CMake
mailing list