Hi all,
I’m trying to set up my paths to allow compiling to work. Ideally I would like to be able to compile in both Visual C++ express and at the command line but at present neither is working. I was wondering if someone could tell me if my environment variables are correct. I’ve listed them below:
Visual Studio
I have added the following to the VC++ Directories section in options
Executable Files :
C:\CUDA\Bin
Include Files:
C:\CUDA\include
C:\CUDA\SDK\common\inc
Library Files:
$(CUDA_LIBRARIES) cuda.lib cudart.lib
C:\CUDA\lib
My guess is this is not correct but please let me know!
In the system environment variables I have set the following:
CUDA_BIN_PATH C:\CUDA\bin
CUDA_INC_PATH C:\CUDA\include
CUDA_LIB_PATH C:\CUDA\lib
CUDA_LIBRARIES C:\CUDA\SDK\common\inc
PATH C:\CUDA\bin
VC_INCLUDE C:\Program Files\Microsoft Visual Studio 8\VC\include
These are all variables I have added to try and get compilation to work but I still get errors related to files not being found (when i compile simpleCUFFT it can’t find standard C libraries (stdio.h etc) and cutil.h.
Find below my error messages at a command prompt:
"C:\CUDA\bin/../include/driver_types.h", line 48: error: could not open source
file "limits.h"
#include <limits.h>
^
"C:\CUDA\bin/../include/driver_types.h", line 49: error: could not open source
file "stddef.h"
#include <stddef.h>
^
"C:\CUDA\bin/../include/common_functions.h", line 49: error: could not open
source file "time.h"
#include <time.h>
^
"C:\CUDA\bin/../include/math_functions.h", line 385: error: could not open
source file "math.h"
#include <math.h>
^
"C:\CUDA\bin/../include/math_functions.h", line 386: error: could not open
source file "stdlib.h"
#include <stdlib.h>
^
"simpleCUFFT.cu", line 33: error: could not open source file "stdlib.h"
#include <stdlib.h>
^
"simpleCUFFT.cu", line 34: error: could not open source file "stdio.h"
#include <stdio.h>
^
"simpleCUFFT.cu", line 35: error: could not open source file "string.h"
#include <string.h>
^
"simpleCUFFT.cu", line 36: error: could not open source file "math.h"
#include <math.h>
^
"C:\CUDA\bin/../include/cufft.h", line 44: error: could not open source file
"stdio.h"
#include <stdio.h>
^
"simpleCUFFT.cu", line 40: error: could not open source file "cutil.h"
#include <cutil.h>
^
11 errors detected in the compilation of "simpleCUFFT.cu".
Any help would be much appreciated.
Thank you,
Chris Morrison