Reputation: 11
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++. For some reason, when I try to include the SDL.h file, I get the following error:
"LNK 1561 entry point must be defined .... the packages element is not declared" Here is my code:
#include<iostream>
#include <string>
#include "SDL.h"
using namespace std;
int main() {
cout << "HELLOO" << endl;
string s;
cin >> s;
return 0;
}
Upvotes: 0
Views: 356
Reputation: 35235
Your main
function should be defined exactly as:
int main(int argc, char *argv[]) // note function arguments
because SDL library expects it to be in that format.
Upvotes: 1