在运行cuda by example 最简单例子的时候,出现
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 未解決的外部符号 _main 的函数可以被___tmainCRTStartup参照。错误
程序如下:
#include “stdafx.h”
#include
#include “book.h”
int main(void)
{
printf(“hello world\n”);
return 0;
}
文件名为 hello world.cu
求各位大大帮忙!!!谢谢了