I wanted to include ENet in my VS2019. I included its lib and directories and include its lib in Addition Dependencies but I'm having this
My code:
#include<enet/enet.h>
#include<iostream>
#include<stdlib.h>
using namespace std;
ENetHost* client;
ENetAddress* address;
ENetPeer* peer;
int main(int argc, char** argv) {
int key;
cout << "Hello";
cin >> key;
return 0;
// initialize ENet
if (enet_initialize() != 0)
{
fprintf(stderr, "An error occurred while initializing ENet.\n");
return EXIT_FAILURE;
}
atexit(enet_deinitialize);
}