I've got two programs: hello.pas, and uhello.c ...
hello.pas defines a procedure called hello which simply writes "hello" to STDOUT...
I compiled it and got the .o file, and made a header file for it defining: extern void Hello;
then i use the .h file in uhello.c: #include "hello.h"
and try a call to Hello in the main block of uhello.c...
The program works without errors, but the Hello procedure isn't writing anything to the screen like it should... The Documentation pointed out that gpc will compile the procedure name with the first letter being capitalized, which is why I did the external declaration for Hello...
Also, like in the example I saw, thge pascal file defined:
procedure hello; asmname 'hello';
before actually defining the procedure with a being and end; statement... That's what I did.. Does the example mean that I should put asmname on the actual procedure declaration, or should it be separate like that?
any ideas as to why the procedure isn't getting called? -Nic