static code in binary

is it possible to compile the binary with static code inside?
how i could do so?
i just use -d in compiler-options, but i didn’t solve my problem.

errorcode: CUDA call on file cuda_main.cpp returned error 700.

thanks