nvcc linking problems

It is all about a test program, that does not call any cuda related stuff yet. But I am not able to compile it properly with nvcc.

It is regular c code. When I want to link an o-file, that was precompiled, is just get the error: undefined reference to …

my call is:
nvcc test.cu -I …/include loadmatrix.o

Or is there another way to include o-files?

May be name mangling problem. Which compiler do you use to generate loadmatrix.o ? In Windows, it should be Visual C++.