A VERY weird problem on ubuntu.

Just starting out? Need help? Post your questions and find answers here.
naputtelija
New User
New User
Posts: 1
Joined: Wed Dec 01, 2010 5:33 pm

A VERY weird problem on ubuntu.

Post by naputtelija »

Ok, first i tried simple helloworld program:

Code: Select all

    OpenConsole()
    PrintN("hello world")
    Repeat
      Delay(1)
    Until Inkey() <> ""
And it compiled the program, and a message appeared saying that the program is running. But i couldn't see anything! Nothing appeared on the screen. No console or a program of any kind.

Next i tried including a "2ddrawing" file, and a message appeared saying file not found. The both problems must have something to do with my ubuntu OS. Is there something special I need to do with ubuntu? Configure settings, perhaps? Or is there different kind of code for ubuntu?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: A VERY weird problem on ubuntu.

Post by c4s »

Without knowing anything about Linux I think this topic will help you out: [Tutorial/HowTo] Install PureBasic 4.01 on Ubuntu Linux
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: A VERY weird problem on ubuntu.

Post by Trond »

Set the executable type to console in the IDE, and the IDE will open a console window so you can see your program.
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

Re: A VERY weird problem on ubuntu.

Post by GBeebe »

also, if you ./purebasic from a terminal, all Print and PrintN outputs will go to that terminal.
Post Reply