Closed HotoCocoaco closed 1 year ago
Not compiling on Windows 10 with 1.11 compiler.
//// vsh2.sp // modules\base.sp(633) : error 017: undefined symbol "g_vshgm"
Not compiling on Windows 10 with 1.11 compiler.
//// vsh2.sp // modules\base.sp(633) : error 017: undefined symbol "g_vshgm"
You cannot compile 2.12 in Windows compiler either. Try linux.
What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?
What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?
The file system seems different when handling include sp files. I have tried to compile 2.12 on both Windows and Linux. And only Linux compiler works.
// modules\base.sp(633) : error 017: undefined symbol "g_vshgm"
https://github.com/HotoCocoaco/Vs-Saxton-Hale-2/blob/sm-1.11/addons/sourcemod/scripting/modules/gamemode.sp#L640 It's defined here. And somehow Linux compiler will save that variable as a global var.
What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?
Fix Windows build. Compiled with SourcePawn Compiler 1.11.0.6919 on Windows. https://github.com/HotoCocoaco/Vs-Saxton-Hale-2/commit/4c55c9cfc96849efae7544e90d6911daab275a2e
We have fixed cross compile issues on Linux and Windows in the 2.13 update. It should be 1.11 compatible when 2.13 is released.
HotoCocoaco/Vs-Saxton-Hale-2/tree/sm-1.11
Make some changes to make it able to be compiled in 1.11.
Use fixed-size array instead of dynamic-size array in vsh2.inc#L1158 .This is probably bad. Scalar assignment to array is deprecated in 1.11.VSHGameMode
a independent instance instead of insideVSH2Globals
.However it's cannot be compiled in 1.10. :[
Not tested in-game. It should be ok because no big changes to the codes.It's proved working in my own server.