I used ‘CUDA Windows Application Wizard’ to create a file .lib
Now how do I use this library in a C program? When I try to call the function TestHelloCuda the compiler(gcc in Windows XP) go in error:
`TestHelloCUDA’ undeclared (first use this function)
marf
November 20, 2008, 9:50am
2
Hello !
Did you use some extern “C” declaration ?
You should post your code to have more answers ;)
That be, using gcc to link on windows may be tricky because nvcc use cl to compile.
(see my post : [url=“http://forums.nvidia.com/index.php?showtopic=81259&st=0&p=460724&#entry460724 ”]http://forums.nvidia.com/index.php?showtop...mp;#entry460724[/url]
I explain a workaround if you have more link pbs).
Hello !
Did you use some extern “C” declaration ?
You should post your code to have more answers ;)
That be, using gcc to link on windows may be tricky because nvcc use cl to compile.
(see my post : http://forums.nvidia.com/index.php?showtop…mp;#entry460724
I explain a workaround if you have more link pbs).
with the valuable help of kyzhao (In the thred http://forums.nvidia.com/index.php?showtop…=#entry465791)I came to the conclusion that will create a dll