Your code runs fine here. You probably need to start by using a console app project template. Go to file|new and choose "console application". Now you can delete the template code and paste yours.
You are probably trying to use the "default" template that is opened when Lazarus opens, which is a full windowed app template, which is a collection of program units, not just one like you want.
Which operating system do you want to run the program on?
On Mac OS X you have to open the terminal first. Then you can run the application by providing its full path name. Your code runs excellent on Mac OS X Leopard.
Haven't you read my link? There should be View->Debug Windows->Terminal Output.
You need to go to Run->Run Parameters and halfway down is Use Launching application. Tick the check box and put in the command line for your favourite terminal programme.
HTH
I am running Linux Mint 13; Lazarus 9.30.2-2OK, I see that you're using stable version which doesn't have the feature.
You need to go to Run->Run Parameters and halfway down is Use Launching application. Tick the check box and put in the command line for your favourite terminal programme.
HTH
YES! Thank you. That was the keystone. I do appreciate the helpful insight to a problem that's been bugging me to no end. The next beer's on me :)
Hi! Could you please let me know the command line you used? Thanks!