Page 1 of 1

How to create a Command Line application?

Posted: Sat Jun 10, 2006 5:30 pm
by LordK
Hi,

i'm very new the Linux. I installed Suse 10.1 a few days ago an tried to install Purebasic.

In Fact i got PB running if i boot the X Server (KDE). My programms work also fine. But i load a TTY Command line or boot without the x-Server i always get the message "Gtk-Warning **: cannot open display:"

But my programm does not use any graphical elements. So how is it possible to create a programm in pb that works without GTK?

Greetings

LordK

Posted: Sat Jun 10, 2006 5:44 pm
by Nik
You need to switch to commandline mode in the compiler options, an be carfull not to use anything gui related.

Posted: Sat Jun 10, 2006 5:50 pm
by LordK
i allready tried to set executeable Format to Console but i still get the GTK warning.

[edit]

Sorry sorry sorry. my stuidity.
I still had a MessageRequester "hidden" in the sourcecode.

Thanks & Greetings
LordK

[/edit]

Posted: Sat Jun 10, 2006 6:20 pm
by Straker
Welcome LordK - glad to see another Linux user.

Posted: Sat Jun 10, 2006 7:05 pm
by LordK
Straker wrote:Welcome LordK - glad to see another Linux user.
Thank you.

Just gettin warm with it.

But i guess it is a hard & long way to understand Linux in detail. But i'm on my way to get Linux my primary system. I guess you can't live completly without windows (at least when you're sometimes playing games)

Greetings

LordK