Did you try set nVidia's library and include files in the Code Block or project property? By the way we must remenber that who compile the CUDA source code is NVCC, not GCC.
yes.. i need a windows specific tutorial for it...
i have tried changing the toolchain executables making nvcc.exe my default compiler, still it asks for cl.exe(VC++ compiler). moreover i don't know what all libraries i need to link ...some help in this direction will be appreciated.
It's by far easier if you use VS especially since you seem to be a novice. The CUDA integration works very well and you can set up new projects very easily. So what are you using as a build framework instead?
can u be more specific? what is the problem? normally, you should have no difficulties with integrating your codes with CUDA, as far as my experience has shown.
this is the tutorial that i have followed to integrate.. according to cuda documentation, it needs cl.exe(vc++) compiler in addition to nvcc.exe .
HAVING said that the problem in VS is that the cuda templates won't work due to some shell error. I tried reinstalling windows shell but it won't install as it abruptly asks for some files that are not on my comp.(else why would i install it??!!) i have reported this to microsoft and still got no reply.
Now returning to my cuda woes, it feels like only option is to set all files, directory, dll to cuda again and again....that was something i wanted to avoid....(being MORE SPECIFIC):
just copy/paste from internet, 'cause i did that long time ago and completely forgot the details, but it seems it is your case. At least, i solved my cl.exe-error just by following this kind of prescription
------------------------------------
You will need to add the folder containing the "cl.exe" file to your path environment variable. For example:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin
Edit: Ok, go My Computer -> Properties -> Advanced System Settings -> Environment Variables. Here look for Path in the list, and add the path above (or whatever is the location of you cl.exe).
if u get this error
` nvcc fatal : Visual Studio configuration file '(null)' could not be found for installation at 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin/../..' ` –
pass --machine 32 as a parameter to nvcc while compiling ur file
i have already added VS 10.0 into my environment variables...i can compile and run the programs but for that i have to repeat steps everytime.... i just wanted to avoid that...
and i have more inclination towards code blocks than visual studio