open.mp forum
[Pawn] YSI 5.X on linux compiler. - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] YSI 5.X on linux compiler. (/showthread.php?tid=1088)



YSI 5.X on linux compiler. - EvilShadeZ - 2020-05-12

Hello, I have encountered an issue where I can't include YSI in the script.

If I try to include it this way:
Code:
#include <YSI_Coding/y_hooks>
The include directive works just fine, but YSI returns an error:
Code:
fatal error 111: user error: Did you use `YSI/y_hooks` instead of `YSI\y_hooks`?
But if I try to include the way it wants
Code:
#include <YSI_Coding\y_hooks>

fatal error 100: cannot read from file: "YSI_Coding\y_hooks"

So linux doesn't support '\' in paths, as it is a valid file name character.

This user error basically makes YSI incompatible on Linux.
Is there an actual reason why it was done that way?


Seems like #pragma compat 1 does fix my issue.


RE: YSI 5.X on linux compiler. - billz - 2020-05-13

deleted