01-19-2023, 09:49 AM
I can give you a hint but not my solution it was frustrating to do it and took me more than a week to resolve it.
If you update your compiler you should/need to update also the boost version and other libraries.
To migrate from boost-1-59 to 1-8X you need to do some changes on the networking stuff which is not really critical since mostly they changed the namespace and some constructors.
But changing this stuff won't make your server work, it should be able to compile but starting it will result in a segmentation fault.
The segmentation error happens because of bad memory allocation, you need to find out where it happens.
If you look at the trace exactly and you have knowledge then you should notice weird behavior, it has nothing to do with the memory pool from boost that works perfectly its just
code in the server which has different behavior in the newer compiler version.
I wouldn't recommend you to do this upgrade, because you cannot be sure about the behavior later on, we are talking here about the start of the server, but remember how many
lines of code the GS has, so if some crashes occur later on, you can't be sure if the crashes are because of the upgrade or some other stuff.
Note that if you do that stuff and make it work Unix you will have to do the same for windows but there are different problems because
its a different compiler..
For experienced developer this should be no issue and I hope that Gamigo is running their servers also on latest versions.. if not that's a really sad story..
One thing that is pretty cool after the upgrade is that I can use the latest C++ version now which makes it easier to write (good)code.
And also the performance increased heavily i could measure an boost of over 50% starting up the server, I have no data yet about the core performance but I think it should also be improved a lot.

