cuda - Linking an extra object file -


i using qmake manage build of cuda project. i'd use separate compilation feature of cuda 5.0, means device code must linked before being linked rest of code.

i've managed intermediate linking step adding .pro file:

qmake_pre_link = $$cuda_dir/bin/nvcc $$cuda_gencode -dlink $(objects) -o dlink.o 

this creates object file called dlink.o, should added array of objects linked g++, don't know how accomplish this.

peeking makefile, notice linker passed additional variable called objcomp, not defined , can't find way access through qmake.

add line .pro file:

libs += dlink.o 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -