[CMake] How to Link in an Object file in Cmake

Alexander Neundorf a.neundorf-work at gmx.net
Sun Nov 14 09:14:33 EST 2010


On Sunday 14 November 2010, Ted Kord wrote:
> With,   add_executable(....  foo.o),   I got:
>
> Undefined symbols:
>   "func(thrust::host_vector<float, std::allocator<float> >&)", referenced
> from:
>       _main in main.cpp.o
> ld: symbol(s) not found

And that symbol is indeed in foo.o ?

Alex


More information about the CMake mailing list