Advertisement
Benjamin_Loison

Error logs compiling network Windows on Linux

Jul 8th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. altiscraft@overclock3000:~/DEV/AltisCraft.fr/Client$ php compile.php
  2. ./Extensions/Network/Main/client.cpp: In function ‘void init()’:
  3. ./Extensions/Network/Main/client.cpp:47:74: error: ‘gethostbyname’ was not declared in this scope
  4. destination.sin_addr.s_addr = *(u_long*)gethostbyname("altiscraft.fr")->h_addr_list[0];
  5. ^
  6. ./Extensions/Network/Main/client.cpp: In function ‘void verifyDisconnexion()’:
  7. ./Extensions/Network/Main/client.cpp:107:83: error: ‘WSAGetLastError’ was not declared in this scope
  8. int lengthTemp = recv(socketId, bufferTmp, 1, 0), error = WSAGetLastError();
  9. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement