Log in

View Full Version : Vaultserver compiling



webmanix
07-21-2013, 07:25 PM
Im getting the following error while trying to compile vaultserver


..\CriticalSection.h|22|error: 'recursive_timed_mutex' in namespace 'std' does not name a type|

Compiler flags:
-m32
-std=c++11

Linker flags:
-static

Its release, not debug... Suggestions? Looked up about this but... shouldnt be happening at all

foxtacles
07-21-2013, 07:42 PM
You should use the makefiles, not specifying compiler flags manually. Just use the project files in the repository.

This compiler error has been reported by other users several times already. It's an issue with the setup / wrong MinGW.

https://fuch.si/47

And there are more threads like these

webmanix
07-21-2013, 08:14 PM
Well, i am using the makefile... Cleaned the whole thing once again, verified mingw settings and tried to compile unmodified source using the makefile, goes back to the last error i was having before this one :(


RakNet\RakNetTypes.cpp||In member function 'bool RakNet::RakNetGUID::FromString(const char*)':|RakNet\RakNetTypes.cpp|756|error: '_strtoui64' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|


This one was solved replacing for strtoull, but since the source compilled b4 without this change, i guess there might be still something wrong with my compiler... Im just getting out of places to look for mistakes... mingw is set up correctly as far as i know...

cOOLsp0T
11-02-2013, 10:24 AM
You need to include the Boost libs for compiling vault-mp. I know, you can't read this here at the forum, but you will need it. Also like the newest MingW Compiler. The Boost libs must also be compiled before you can include it in your compiler. Its not really easy to do this. I spend a lot of time to build my developerenviromnent for vault-mp.

foxtacles
11-04-2013, 03:33 PM
Boost doesn't need to be compiled. It's enough if it's present. Only a couple of header files are actually required.

cOOLsp0T
11-14-2013, 12:46 PM
Im happy that i found a suggestion for this problem, because im not experienced enought to see which header file would be needed. I also found no information that boost lib files would needed for compiling. Other programpart sources are linked on github.