On 04 Feb 2009, at 22:36, Ken G. Brown wrote:

At 10:30 PM +0100 2/4/09, Jonas Maebe apparently wrote:
On 04 Feb 2009, at 18:48, Ken G. Brown wrote:

However, when I try running from Finder, I get a short few characters out the serial port then the program dies. This is whether or not the 'run under Rosetta' box is checked in Get Info. Intel or PowerPC shows properly in Activity Monitor. I've tried inserting printf in the 'C' code just before the write statement but cannot find any output. Also tried fprintf's to stdout and stderr. I've tried running the program from Terminal to see if that helped. How and where should I be able to see output? Where should a write(var); go from the pascal side?

For GUI apps, it will go to the console. Open /Applications/ Utilities/Console.app to see it.

Wasn't having any luck seeing it there either. I'm bring some legacy code forward, perhaps I'm missing some sort of startup code.

No special startup code is necessary for either the C library or for the FPC run time library (at least not under Mac OS X with the Xcode templates).


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to