• 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!

Compiling Compiling OTHire 7.72

Dyabl0

Dyablo
Joined
Sep 22, 2009
Messages
1,866
Solutions
9
Reaction score
280
Location
Spain
Unfortunately, I'm having some issues while trying to compile OTHire 7.72 version.
I'm having the following issues:

Severity Code Description Project File Line Suppression State
Error LNK1120 2 unresolved externals 7.72 Dyablo C:\.exe 1
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file exception.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 1544
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file exception.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 3190
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file otserv.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 1544
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file otserv.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 3190
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file scheduler.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 1544
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file scheduler.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 3190
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file tasks.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 1544
Warning C4091 'typedef ': ignored on left of '' when no variable is declared (compiling source file tasks.cpp) 7.72 Dyablo C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h 3190
Error LNK2038 mismatch detected for '_MSC_VER': value '1600' doesn't match value '1900' in actions.obj 7.72 Dyablo C:\libboost_regex-vc110-mt-1_51.lib(instances.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: __thiscall std::exception::exception(char const * const &)" (__imp_??0exception@std@@QAE@ABQBD@Z) C:\libboost_system-vc110-mt-1_51.lib(error_code.obj) 1

Using the following tutorial:
https://github.com/TwistedScorpio/OTHire/wiki/Compiling-under-Windows-(Visual-Studio-2010-2013)

I'm also using Visual Studio 2015, not sure if it's compatible, if so, can someone please tell me where can I get Visual Studio 2015 libraries or whatever to fix this?
 
The errors I've posted above weren't enough, I had many of them but same ones.

Error LNK2001 and 2038 has been fixed (_MSC_Ver: ) thing, by replacing the libraries (.lib). How did I got newer ones? Since I'm using MVSC 2015, I know the VC in Platform Set is 'vc140', so I found Boost vc140 around NuGet Gallery, downloaded by using NuGet extension inside MSVC (had already installed) commandline given at their website: https://www.nuget.org/packages/boost-vc140/

Then I didn't bother changing all the files, just took the .lib thing from each file and put to lib file and told to MVSC to use Platform Set vc140, and not vc100 which I had before (since all my libs were vc100).

Any question can be asked, feel free to send me PM.

I'm still having the warnings of C4091 'typedef'... etc, if someone knows how to fix please post below!
 
If it says the tutorial is for compiling with visual studio 2010-2013, then stick with that. Also, the errors are telling you what's wrong. That's most likely what's causing most of the errors. Do that, and then please post whatever the results are here.

Requirements for this tutorial:
  1. You must have Visual Studio 2010 Build Tools in order to compile under VS2013 -- build tools required from msvc2010 if you want to compile with 2013.
  2. Download Avesta libraries at: http://code.google.com/p/avesta74/downloads/detail?name=libraries.7z&can=2&q=
  3. libraries HERE
 
Back
Top