Compile CUDA with gcc

Hello guys,

I’m having problems with compilation… My cuda program is just a part of a bigger C project and I need to find a way to link my cuda functions with gcc… I have already seen some topics, but I couldn’t do it anyway…
Can anyone help me? With and example, if possible, because I’m not really good at compilations, flags and libs
Thanks!

You really need to be more explicit and post an example because being so vague you won’t get any useful answers…