On Thu, 7 Nov 2002, Markus Gerwinski wrote:
Hi folks,
I'm currently trying to call a Pascal routine from within a C program. To this mail I attached a few sources demonstrating the way I'm trying to do so. Compiling them with
gpc -c foo.pas gcc footest.c -o footest
leads to an error message "undefined reference to `Bar'".
Since gpc is a patched version of gcc, gpc knows ".c" and this works:
gpc -c foo.pas gpc -o footest foo.o footest.c
Russ