cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Using sprofile when the kernel includes other header files.

Hello,

I have a kernel that includes lots of other header files contained in the same directory as the kernel file. Now when I start the profiler  it gives a catastrophic error saying it cannot open those include files. However my program runs just fine without the profiler. Is there a way to solve this problem?

Regards,

Sayantan

0 Likes
1 Solution

just to be sure try -I /absolute/path/to/include

View solution in original post

0 Likes
4 Replies
nou
Exemplar

do you use relative path in -I? most likely sprofiler change working directory.

0 Likes

In the cl build option i use "-I ./" as the include path.

Generally I set the PATH environment variable to the directory containing sprofile.

Alternatively I have also tried coping sprofile to the directory containing the kernels and the program but still couldn't get it running. 

0 Likes

just to be sure try -I /absolute/path/to/include

0 Likes
notzed
Challenger

If you want to keep your code the same, just pass "-w ." to sprofiler to set the current working directory, for some reason it doesn't default to '.', but to $HOME I think.

0 Likes