• 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 Version of boost

EvilSkillz

Back
Joined
Jul 12, 2012
Messages
1,810
Solutions
2
Reaction score
388
Location
Egypt - Cairo
Hello OT-Land
this question is for advanced programmer or TFS developers
and i hope you @Mark can answer that

how can i know what version of boost that required for the tfs version
i saw this line .. but i don't know if i'm right or not
this from 0.2.15
and i think it means the compiler of VC 2010 or more can compile it depend on those lines
Code:
    //#if VISUALC_VERSION >= 10
    #if defined(_MSC_VER) && _MSC_VER >= 10
        #include <stdint.h>
    #else
        typedef signed long long int64_t;
        // Int is 4 bytes on all x86 and x86-64 platforms
        typedef unsigned int uint32_t;
        typedef signed int int32_t;
        typedef unsigned short uint16_t;
        typedef signed short int16_t;
        typedef unsigned char uint8_t;
        typedef signed char int8_t;
    #endif

so for tfs 0.4 8.60
i can see those lines
and i think it's mean accept boost of vc under 2010
Code:
    #define atoll _atoi64
    #if VISUALC_VERSION < 10
        typedef unsigned long long uint64_t;
        typedef signed long long int64_t;
        typedef unsigned int uint32_t;
        typedef signed int int32_t;
        typedef unsigned short uint16_t;
        typedef signed short int16_t;
        typedef unsigned char uint8_t;
        typedef signed char int8_t;
    #endif

but can i know how can i know the version of boost that i need to use to compile my server ...

for example TFS 0.4 8.60 no have 64x bit or VC version
so how can i know the boost version from source to use it

i think i'm right about i should use the same version wrote on definitions.h

but my other question is
if i changed for example this line on tfs 0.4 8.60
Code:
#if VISUALC_VERSION < 10
to this
Code:
#if VISUALC_VERSION >= 10

it means i can use new boost version ? so i can create new empty project and compile mine server into 64x mode
 
I'm not a TFS dev but common sense says you should check the source code of TFS for preprocessor variables that contain BOOST in them. They may indicate what version of the library is acceptable. Also, have you even tried compiling it against the latest version of Boost?
 
Back
Top