nvcc errors in every line

hi everyone, im noob in cuda .i’ve installed cuda driver, toolkit and sdk according manual in http://developer.download.nvidia.com/. But when im trying to use nvcc like nvcc p1.cu, where .cu file contains code of simple program:
#include <stdio.h>

global void helloCUDA(float f)
{
 printf(“Thread %d, f=%f\n”, threadIdx.x, f);
}

int main()
{
 helloCUDA<<<1, 8>>>(1.2345f);
 cudaDeviceReset();
 return 0;
}

i’ve got a lot of error:

p1.cu:13:2: warning: missing terminating ’ character
p1.cu:17:21: warning: backslash-newline at end of file
p1.cu:19:2: warning: missing terminating ’ character
p1.cu(1): error: expected a declaration

p1.cu(1): error: unrecognized token

p1.cu(1): error: unrecognized token

p1.cu(1): error: unrecognized token

p1.cu(1): error: unrecognized token

p1.cu(1): error: unrecognized token

p1.cu(2): error: unrecognized token

p1.cu(2): error: unrecognized token

p1.cu(2): error: unrecognized token

p1.cu(2): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(3): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(4): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(5): error: unrecognized token

p1.cu(6): error: unrecognized token

p1.cu(7): error: unrecognized token

p1.cu(7): error: unrecognized token

p1.cu(7): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: “#” not expected here

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

p1.cu(9): error: unrecognized token

etc.

what’s wrong with nvcc? please help
Thank you

How do you enter the program into the computer and save it to p1.cu?

using terminal: touch 1.cu, and then put my code in it, i think that i’m stupid noob ^^

How do you “put your code int it”?

And please post here the output of “[font=“Courier New”]hexdump -C p1.cu[/font]”.

ohhh thanks, there was a lot of symbols for font color etc. Thank you :smile: but now how i can add paths for include files, because i get error that include files arent found?

everything is ok, i just edit nvcc.profile adding there include paths. Thank you.