compile cuda with an existing vc project (mfc) compile cuda with an existing vc project

Hello,

i have added a simple cuda program to an existing project using mfc,
the debug version can link and run.
in order to achieve this, i’ve modified the file .proj and .sln
but with the emudebug version, the visual studio compiler tell :
1>libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

in debug version, i must ignore MSVCRTD.lib in order to link
in emudebug, if i ignore LIBCMTD.lib, the compiler can’t link a lot of function.

if you have a solution, can you tell me.

Francois
veg.proj.txt (14.2 KB)