opensubscriber
   Find in this group all groups
 
Unknown more information…

m : macpascal@listman.sonic.net 17 July 2005 • 12:04PM -0400

Re: R:[MacPascal] Seeking help to start
by Olle Raab

REPLY TO AUTHOR
 
REPLY TO GROUP




05-07-14 08.31, skrev Ingemar Ragnemalm följande:

> Sorry to repeat myself, but after two complete reinstallations of Xcode
> and FPC, I believe I have a correct setup, Pascal compilation works
> better, but the linking problem remains.
>
> - If the C file doesn't compile, I get a link error. Correct,
> acceptable, although strangely random.
> - If the C file is compiled, then "_main" doesn't exist and the program
> can't run. This is alarming, suggests that any C file knocks out the
> Pascal main program as starting point?
>
> Similar experiences, anybody? What can be done? Must the main program
> be in C?

I have now added info to
http://www.freepascal.org/wiki/index.php/Porting_from_Mac_Pascal
on how to do it.

The only problem is that printf from C code does not work. Someone have any
hints on this ? Does some C runtime library has to be initialized ?

Olle


_______________________________________________
MacPascal mailing list
MacPascal@list...
http://lists.sonic.net/mailman/listinfo/macpascal

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.