I’m trying to run the following command:
nvcc …/src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,"code=sm_10,compute_10" -gencode arch=compute_11,"code=sm_11,compute_11" --keep -gencode arch=compute_20,"code=sm_20,compute_20" --keep --machine 32
I’m getting this error:
libcmt.lib(crt0.obj) : Error LNK 2019: unresolved etneral symbol _main referenced in function
___tmainCRTSTARTUP
a.exe : fatal error LNK1120: 1 unresolved external
I’m using Visual Studio 2010 Express. Anyone able to help me resolve this issue?
Maybe this will help anyone to point me in the right direction:
I used --Verbose to get below:
#$ cl -nologo -c -TP “-I./…/include” “-I./…/include/cudart” “-IC:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include” -EHsc “bitcoinminercuda.cu.cpp.ii” -Fo"bitcoinminercuda.obj"
bitcoinminercuda.cu.cpp.ii
#$ cl -nologo “bitcoinminercuda.obj” -Fe"a.exe" -link -INCREMENTAL:NO “/LIBPATH:./…/lib/Win32” cudart.lib
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main reference
d in function ___tmainCRTStartup
a.exe : fatal error LNK1120: 1 unresolved externals
–error 0x2 –