• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Your ots 0.9.4f

Caym

New Member
Joined
Jun 30, 2020
Messages
7
Reaction score
0
Hi Everyone, I have problem with compile source.
GitHub - divinity76/YurOTS: YurOTS 0.9.4F (https://github.com/divinity76/YurOTS)

I'm try to use these dev Cpp
Compiling - Dev Cpp - Yurots 0.9.4f - Configuration (https://otland.net/threads/dev-cpp-yurots-0-9-4f-configuration.289722/)

If anyone know how to do it correct, can you help me with that ?
Always I have error with compile.

If possible can you give me any instrucion step by step.
Thank You
If you're having problems compiling YurOTS 0.9.4f, here are the steps that usually fix all the common errors:

1. Don’t use Dev-C++. It’s too old and it will always fail with this source.
Use Visual Studio 2019 or 2022.

2. When installing Visual Studio, make sure you select:
- MSVC toolset
- Windows 10 SDK
- Desktop development with C++

3. Download a clean copy of YurOTS 0.9.4f from the GitHub repo so you know the
code isn’t modified or corrupted.

4. Open the .sln file with Visual Studio and let it upgrade the project automatically.

5. Most of the usual errors come from outdated headers:
- If you get “stdafx.h missing”, just remove the include or replace it with:
#include <iostream>
#include <string>
- If you get winsock errors, add this at the top:
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
- Remove any pthread includes (they’re not needed on Windows).
- For deprecated function warnings, add this define at the top of the file:
#define _CRT_SECURE_NO_WARNINGS

6. Set your config to:
- Release
- x86

7. Build the solution. If it still gives errors, post the full compile log and I’ll take a look.
 
If you're having problems compiling YurOTS 0.9.4f, here are the steps that usually fix all the common errors:

1. Don’t use Dev-C++. It’s too old and it will always fail with this source.
Use Visual Studio 2019 or 2022.

2. When installing Visual Studio, make sure you select:
- MSVC toolset
- Windows 10 SDK
- Desktop development with C++

3. Download a clean copy of YurOTS 0.9.4f from the GitHub repo so you know the
code isn’t modified or corrupted.

4. Open the .sln file with Visual Studio and let it upgrade the project automatically.

5. Most of the usual errors come from outdated headers:
- If you get “stdafx.h missing”, just remove the include or replace it with:
#include <iostream>
#include <string>
- If you get winsock errors, add this at the top:
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
- Remove any pthread includes (they’re not needed on Windows).
- For deprecated function warnings, add this define at the top of the file:
#define _CRT_SECURE_NO_WARNINGS

6. Set your config to:
- Release
- x86

7. Build the solution. If it still gives errors, post the full compile log and I’ll take a look.
Build started...
1>------ Build started: Project: otserv, Configuration: Release Win32 ------
1>aac.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>account.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>actions.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>chat.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>commands.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>container.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>creature.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.h(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>fileloader.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\fileloader.cpp(478,6): error C2668: 'abs': ambiguous call to overloaded function
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstdlib(31,46): message : could be 'long double abs(long double) noexcept'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstdlib(27,40): message : or 'float abs(float) noexcept'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstdlib(23,41): message : or 'double abs(double) noexcept'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\stdlib.h(368,22): message : or '__int64 abs(const __int64) throw()'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\stdlib.h(363,17): message : or 'long abs(const long) throw()'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_math.h(464,38): message : or 'int abs(int)'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\fileloader.cpp(478,6): message : while trying to match the argument list '(unsigned long)'
1>game.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.cpp(35,10): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>guilds.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\guilds.h(24,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>houses.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>ioaccount.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\ioaccountxml.h(27,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>ioaccountxml.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\ioaccountxml.h(27,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>iomapotbm.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>iomapxml.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\iomapxml.h(26,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>ioplayer.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>ioplayerxml.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>item.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>itemloader.cpp
1>items.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\hash_map(22,1): fatal error C1189: #error: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1>Generating Code...
1>Compiling...
1>loginqueue.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\luascript.h(28,10): fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
1>luascript.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\luascript.h(28,10): fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
1>magic.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>map.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\map.cpp(30,10): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>md5.cpp
1>monster.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>monsters.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>networkmessage.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>npc.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\npc.cpp(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>otserv.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.h(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>player.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\player.cpp(28,10): fatal error C1083: Cannot open include file: 'boost/tokenizer.hpp': No such file or directory
1>position.cpp
1>protocol.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>protocol76.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.h(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>pvparena.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.h(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>readables.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\game.h(30,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>scheduler.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\scheduler.h(25,10): fatal error C1083: Cannot open include file: 'boost/function.hpp': No such file or directory
1>spawn.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>spells.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\spells.cpp(29,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>status.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\status.cpp(22,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>Generating Code...
1>Compiling...
1>summons.cpp
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\luascript.h(28,10): fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
1>thing.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>tile.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\errno.h(129,1): warning C4005: 'EWOULDBLOCK': macro redefinition
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\definitions.h(39): message : see previous definition of 'EWOULDBLOCK'
1>C:\Users\KS\Desktop\YurOTS-master\ots\source\item.h(25,10): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory
1>Generating Code...
1>Done building project "otserv.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Back
Top