• Sign up for September Mapping Competition! The prize includes Otland Premium time.
  • 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!

TFS 1.X+ TFS 1.2 Compiling 8.60

DaBlauwk

Psychedelic
Joined
Jun 9, 2014
Messages
33
Best answers
0
Reaction score
1
Location
The Moon
Hi
Had to rebuild because I made some changes for crystal coin to change into gold nugget but that doesn't seem to be the problem.
I'm using Visual Studio 2017 with boost 1.66.0 and tfs-sdk-3.2
Failing rebuild
OUTPUT
Code:
1>c:\psychoactive\src\connection.cpp(119): error C2440: '<function-style-cast>': cannot convert from 'Connection::<unnamed-enum-read_timeout>' to 'boost::posix_time::seconds'
1>c:\psychoactive\src\connection.cpp(119): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>c:\psychoactive\src\connection.cpp(159): error C2440: '<function-style-cast>': cannot convert from 'Connection::<unnamed-enum-read_timeout>' to 'boost::posix_time::seconds'
1>c:\psychoactive\src\connection.cpp(159): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>c:\psychoactive\src\connection.cpp(222): error C2440: '<function-style-cast>': cannot convert from 'Connection::<unnamed-enum-read_timeout>' to 'boost::posix_time::seconds'
1>c:\psychoactive\src\connection.cpp(222): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>c:\psychoactive\src\connection.cpp(254): error C2440: '<function-style-cast>': cannot convert from 'Connection::<unnamed-enum-write_timeout>' to 'boost::posix_time::seconds'
1>c:\psychoactive\src\connection.cpp(254): note: No constructor could take the source type, or constructor overload resolution was ambiguous
ERROR LOG
Code:
Error    C2440    '<function-style-cast>': cannot convert from 'Connection::<unnamed-enum-write_timeout>' to 'boost::posix_time::seconds'    theforgottenserver    c:\psychoactive\src\connection.cpp
 

Sajgon

Premium User
Premium User
Joined
Mar 10, 2017
Messages
225
Best answers
3
Reaction score
209
Location
Sweden
@jo3binghams answer solved the failed rebuild.

But now when opening forgottenserver.exe I receive below issue, meaning boost_date_time-vc142-mt-x64-1_70.dll cannot be found.
37732

Using older build of TFS but 1.2~.
Using boost version 1_62_0

Anyone has any ideas how to pass this?
 

M0ustafa

1337
Premium User
Support Team
Joined
Mar 4, 2017
Messages
2,066
Best answers
262
Reaction score
802
Location
Egypt
Just download the missing DLL depends on your TFS version 64/32 and add it to your server then it should run properly.
 

M0ustafa

1337
Premium User
Support Team
Joined
Mar 4, 2017
Messages
2,066
Best answers
262
Reaction score
802
Location
Egypt
What version you are using 32/64? and I think you can find it in the boost folder or vcpkg if you are using it
 
Top