Linux no-GUI problem

Archives Forums/BlitzMax Bug Reports/Linux no-GUI problem

BlitzSupport(Posted 2011) [#1]
I'm playing with networking/sockets on an Ubuntu-based GUI-less server, so having to use Framework/Import to avoid bringing in graphics, sound, etc.

I wanted to print the current date and time to an incoming browser session, but as soon as I import BRL.System, I get a segmentation fault on running (no compiler errors).

I found that if I ripped CurrentDate and CurrentTime from BRL.System and called them directly (no longer importing BRL.System), it works fine.

I notice that BRL.System includes calls to obtain the desktop width/height, mouse control, file requesters, etc, and I'm assuming this is why it fails on a GUI-less Linux.

If so, would it be possible to move the system GUI stuff into a separate module, or not to include this if building/running in command-line mode?

Example...