Benjamin_Loison

Error logs compiling network Windows on Linux

Jul 8th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ./Extensions/Internet/internet.cpp:1:18: fatal error: curl.h: No such file or directory
  2. #include <curl.h>
  3. ^
  4. compilation terminated.
  5. ./Extensions/Network/Main/client.cpp: In function ‘void init()’:
  6. ./Extensions/Network/Main/client.cpp:46:74: error: ‘gethostbyname’ was not declared in this scope
  7. destination.sin_addr.s_addr = *(u_long*)gethostbyname("altiscraft.fr")->h_addr_list[0];
  8. ^
  9. ./Extensions/Network/Main/client.cpp: In function ‘void receive()’:
  10. ./Extensions/Network/Main/client.cpp:77:25: error: ‘F_SETFL’ was not declared in this scope
  11. fcntl(socketId, F_SETFL, O_NONBLOCK);
  12. ^
  13. ./Extensions/Network/Main/client.cpp:77:34: error: ‘O_NONBLOCK’ was not declared in this scope
  14. fcntl(socketId, F_SETFL, O_NONBLOCK);
  15. ^
  16. ./Extensions/Network/Main/client.cpp:77:44: error: ‘fcntl’ was not declared in this scope
  17. fcntl(socketId, F_SETFL, O_NONBLOCK);
  18. ^
  19. ./Extensions/Network/Main/client.cpp: In function ‘void verifyDisconnexion()’:
  20. ./Extensions/Network/Main/client.cpp:107:37: error: ‘WSAGetLastError’ was not declared in this scope
  21. int error = WSAGetLastError();
  22. ^
Add Comment
Please, Sign In to add comment