I am using the Makefile which is provided for each example in the SDK, which references the default common.mk and I’m getting this error while trying to compile my own program.
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/…/…/…/…/lib/crt1.o: In function
_start': /build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to main’
collect2: ld returned 1 exit status
I’ve maintained the structure provided in the example threadMigration, or in any example in the SDK programmes. I’ve browsed this error and from the error reports I’ve read it might be a 64-bit compiling problem. I’ve sucessfully installed Cuda 2.3 and compiled the examples provided by the SDK. The GCC is 4.3.3 version. I’ve add to the LD_LIBRARY_PATH and the other path its requirements, and as all the other SDK programmes compiled and ran sucessfully I can’t seem to point out the origin of the error. Any help is welcomed.