[英]Link error 1561 visual studio community 2015
I used the built in NuGet package in visual studio community 2015 in order to download and properly install automatically SDL version 1.2.15.16 for c++. 我使用了Visual Studio Community 2015中的内置NuGet软件包,以便为c ++下载并正确安装SDL版本1.2.15.16。 For some reason, when I try to include the SDL.h file, I get the following error:
由于某些原因,当我尝试包含SDL.h文件时,出现以下错误:
"LNK 1561 entry point must be defined .... the packages element is not declared" Here is my code: “必须定义LNK 1561入口点...。未声明packages元素”这是我的代码:
#include<iostream>
#include <string>
#include "SDL.h"
using namespace std;
int main() {
cout << "HELLOO" << endl;
string s;
cin >> s;
return 0;
}
Your main
function should be defined exactly as: 您的
main
功能应完全定义为:
int main(int argc, char *argv[]) // note function arguments
because SDL library expects it to be in that format. 因为SDL库希望它采用这种格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.