According to Stanislaw Kozlowski:
I am trying to link a Pascal unit DJGPP C. It links OK but Pascal run time library seems to be unitialized [...]
Before you can use the Pascal run time library you must initialize it by calling `_p_initialize()'. External declaration in C notation follows: extern void _p_initialize ( int argc, char **argv, char **envp ); (The parameters are self-explanatory for C programmers.;-) GPC quits the program by calling extern void _p_finalize ( void ); but it is sufficient to call `_p_fflush()' since `_p_finalize()' reads /* This is called when program ends normally */ void _p_finalize () { _p_fflush(FALSE); /* Call an empty routine, user might want to execute some code here */ _p_final (); exit (0); } Hope this helps, Peter Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]