How to create a Command Line application?

Linux specific forum
LordK
New User
New User
Posts: 4
Joined: Sat Jun 10, 2006 5:23 pm

How to create a Command Line application?

Post 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
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

You need to switch to commandline mode in the compiler options, an be carfull not to use anything gui related.
LordK
New User
New User
Posts: 4
Joined: Sat Jun 10, 2006 5:23 pm

Post 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]
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Welcome LordK - glad to see another Linux user.
Image Image
LordK
New User
New User
Posts: 4
Joined: Sat Jun 10, 2006 5:23 pm

Post 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
Post Reply