请教高手这种问题怎么解决?谢谢

请教高手这种问题怎么解决?谢谢
gcc: -lcula: linker input file unused because linking not done
gcc: -lcublas: linker input file unused because linking not done
gcc: -lcudart: linker input file unused because linking not done
gcc: -lcuda: linker input file unused because linking not done

这种错误是没有搞清预处理,编译,链接的作用和之间的关系。
The message that gcc reported is correct. When you supply a library (even a compiled object file like you did) to a command that does no linking (gcc -c), gcc simply informs you that the library was not used because no linking was done. You didn’t ask it to. Since you specified -c, “source” files are going to be compiled into .o object files, NOT into an executable, nor is anything going to be done with any object files. Gcc saw the extraneous object file supplied and simply ignored it.