你好我不知道为什么我不能编译这段代码?
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
return 0;
}
我收到此错误:
C:\Users\Axel\Desktop\TestPerso\main.cpp|9|错误:预期的不合格 ID >before string constant|
我正在使用 Intel Hd 芯片组和 Nvidia 图形卡 920M 的 PC 上运行 Windows 10 ont。