Vote count:
0
I have installed VS 2010 Ultimate and CUDA 6.5 on windows 8.1 64 bit. Before installing CUDA, I ran a simple hello world program in c++ in an empty project. I realized a strange thing. When I open VS and build for the first time, it builds successfully, but if I rebuild, it gives errors. So each time I make a change in the code and compile, it gives the same errors. But if I close VS and open again and try, it works. cl.exe compiler gives this error:
error C2018: unknown character '0x3'
I get this error for every character in the code, even the comments. Somehow the cl compiler doesn't recognize the text.But if I close VS and open again and try, it works.
After getting the hello world c++ program to run this way I installed CUDA 6.5 and opened a sample project given in the toolkit and adding all the necessary directories to the project's properties. But the project fails to build giving these errors:
1> cl.exe
1> bandwidthTest.cu
1>H:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_ia64\cl.exe(1): error : unrecognized token
One thing to note here is that cl.exe gives error to first line, which only has comments in the code. I get many such "unrecognized token" errors and the build fails. I am using x86_64 folder of cl.exe from the 4 provided by VS2010.For CUDA project it doesn't even work the first time I try to build. Something is messed up in the cl compiler I think, please help.
cl compiler of visual studio giving strange errors with CUDA 6.5 and visual c++ hello world program
Aucun commentaire:
Enregistrer un commentaire