Have you tried to start your app from a terminal, outside the IDE?
I assume:
- your app does compile?
- you get a executable file, on your harddisk (.e.g. project1)
1)
So in a terminal (xterm, gnome-terminal, ...) you can start it?
2)
In Lazarus you can go to the "run" menu, and in "Run Param" you can define a starter app (e.g xterm).
However starter app only works if you choose no debugger (Environment options).
3)
If you want to debug your app in Lazarus, you need the latest snapshot (0.9.31).
And it is a little tricky, as debugging console apps (writeln, readeln) is not fully integrated yet.
http://bugs.freepascal.org/view.php?id=12172Configure gdb in the environment options.
Then you need to first start a terminal, then in that terminal run "tty", which will give you something like "/dev/pty/1" or /dev/ttyN" or ...)
This you just enter in the debug config as the "ConsoleTTy" in "debugger => general" ("debugger specific options")
When you start your app, it's in/output will be on this extra terminal.
------------
It's easier under windows, because windows hives you a separate terminal window anyway...
The problem only exists for console apps. GUI apps are easier to debug.