• 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 Error while compiling in Windows

Naaano201

Member
Joined
Jun 5, 2011
Messages
241
Reaction score
8
Location
Barcelona
I think that the images explains the error...

C/C++ -> General -> Additional Include Directories and then add "include" directory from where you have unpacked Libs:
43529795.png


Linker -> General -> Additional Library Directories and then add "libs" directory from where you have unpacked Libs
78460751.png


Left click in The Forgotten Server project , and make "Rebuild"
56939789.png



84544551.png


I reinstalled windows 7 , MSVC ultimate and all updates from Windows update.

Somebody can help me?
 
Error:
Code:
1> c: \ sources \ otpch.h (34): fatal error C1083: Can not open include file: 'boost / config.hpp': No such file or directory

boost/config.hpp
Code:
//  Boost config.hpp configuration header file  ------------------------------//

//  (C) Copyright John Maddock 2002. 
//  Use, modification and distribution are subject to the 
//  Boost Software License, Version 1.0. (See accompanying file 
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/config for most recent version.

//  Boost config.hpp policy and rationale documentation has been moved to
//  http://www.boost.org/libs/config
//
//  CAUTION: This file is intended to be completely stable -
//           DO NOT MODIFY THIS FILE!
//

#ifndef BOOST_CONFIG_HPP
#define BOOST_CONFIG_HPP

// if we don't have a user config, then use the default location:
#if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG)
#  define BOOST_USER_CONFIG <boost/config/user.hpp>
#endif
// include it first:
#ifdef BOOST_USER_CONFIG
#  include BOOST_USER_CONFIG
#endif

// if we don't have a compiler config set, try and find one:
#if !defined(BOOST_COMPILER_CONFIG) && !defined(BOOST_NO_COMPILER_CONFIG) && !defined(BOOST_NO_CONFIG)
#  include <boost/config/select_compiler_config.hpp>
#endif
// if we have a compiler config, include it now:
#ifdef BOOST_COMPILER_CONFIG
#  include BOOST_COMPILER_CONFIG
#endif

// if we don't have a std library config set, try and find one:
#if !defined(BOOST_STDLIB_CONFIG) && !defined(BOOST_NO_STDLIB_CONFIG) && !defined(BOOST_NO_CONFIG) && defined(__cplusplus)
#  include <boost/config/select_stdlib_config.hpp>
#endif
// if we have a std library config, include it now:
#ifdef BOOST_STDLIB_CONFIG
#  include BOOST_STDLIB_CONFIG
#endif

// if we don't have a platform config set, try and find one:
#if !defined(BOOST_PLATFORM_CONFIG) && !defined(BOOST_NO_PLATFORM_CONFIG) && !defined(BOOST_NO_CONFIG)
#  include <boost/config/select_platform_config.hpp>
#endif
// if we have a platform config, include it now:
#ifdef BOOST_PLATFORM_CONFIG
#  include BOOST_PLATFORM_CONFIG
#endif

// get config suffix code:
#include <boost/config/suffix.hpp>

#endif  // BOOST_CONFIG_HPP
 
Have you tried with adding the boost include aswell?

It seems like it cannot find all the include folders sometimes.
 
Last edited:
Added liblua51 include and shows the same error ..

Code:
1>c:\sources\luascript.h(32): fatal error C1083: Can not open include file: 'lua.h': No such file or directory
 
Now:

Code:
1> luascript.cpp
1> C: \ boost-1.51 \ include \ boost / filesystem / config.hpp (16): fatal error C1189: # error: Compiling Filesystem version 3 file with defined BOOST_FILESYSTEM_VERSION! = 3


Code:
1> scriptmanager.cpp
1> C: \ boost-1.51 \ include \ boost / filesystem / config.hpp (16): fatal error C1189: # error: Compiling Filesystem version 3 file with defined BOOST_FILESYSTEM_VERSION! = 3

- - - Updated - - -

23:44 CET - Ninja !!
 
Last edited:
Use TFS-SDK for compilation.

My Files

Just this two errors:

Code:
1> luascript.cpp
1> C: \ otx-sdk-3.2 \ boost-1.51 \ include \ boost / filesystem / config.hpp (16): fatal error C1189: # error: Compiling Filesystem version 3 file with defined BOOST_FILESYSTEM_VERSION! = 3

Code:
1>  scriptmanager.cpp
1>C:\otx-sdk-3.2\boost-1.51\include\boost/filesystem/config.hpp(16): fatal error C1189: #error :  Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 
sounds like you are compiling with luajit at first time, try to remove that option... and try to get updated libs for compiling, it help a lot
 
Back
Top