Compiling from within VS2008 A little help getting started?


A few people on these forums have discussed building CUDA sources from within VS2008 which requires a version of VS2005 to also be installed. I’d like a little help getting set up to do this.

Currently if I specify this as a custom build step:

[font=“Courier”]nvcc -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin” -cuda[/font]

I get errors because the header files that get picked up are actually from the VC9 distribution rather than VC8. I’m not sure why this happens or how to fix it.

Any hints on getting set up so that the maximum amount of work is done by the VC9 compiler and everythings works would be appreciated.


In my case when using Driver API (i.e. no host code is processed by nvcc) it was enough to add “compiler-bindir = D:/DEV/MSVS8/VC/bin” to nvcc.profile.