With, add_executable(.... foo.o), I got:<div><div><br></div><div><div>Undefined symbols:</div><div> "func(thrust::host_vector<float, std::allocator<float> >&)", referenced from:</div><div> _main in main.cpp.o</div>
<div>ld: symbol(s) not found</div><div><br></div><div><br></div><div>Ted</div><div><br></div><br><div class="gmail_quote">2010/11/14 Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sunday 14 November 2010, Ted Kord wrote:<br>
> Hello<br>
><br>
> I have an object file which I'd like to link in during compilation of my<br>
> executable. I've tried adding it to each of the commands below with no<br>
> success for any:<br>
><br>
> add_executable(.... foo.o)<br>
<br>
</div>This should work.<br>
What error did you get ?<br>
<br>
Alex<br>
</blockquote></div><br></div></div>