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
opensubscriber is not affiliated with the authors of this message nor responsible for its content.