Why I'm getting error including ENet library on MSVS2019

220 views Asked by At

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 error

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);


}
0

There are 0 answers