opentibia / server

An open source server for the MMORPG Tibia.
GNU General Public License v2.0
414 stars 149 forks source link

Compiling on Windows 7 64-Bit Visual C++ 2010 Express #49

Open Watchdog87 opened 9 years ago

Watchdog87 commented 9 years ago

I get a bunch of errors when I try to compile this.

I've followed this tutorial https://otland.net/threads/compiling-simple-otserv-msvc-2010-linux-compiling-the-source.218342/

These are the errors:

1>c:\users\watchdog\documents\github\server\src\otsystem.h(51): fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory 1> http_request.cpp 1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1>c:\users\watchdog\documents\github\server\src\otsystem.h(51): fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory 1> tasks.cpp