I have to admit I don't really understand how the whole PRG to C to EXE system works. And I am not a C programmer.
I have a C program with a function, lets call it "Myfunction" in it, defined like this:
CLIPPER MYFUNCTION( PARAMS )
...
This is compiled using BCC then linked with the PRGs.
But the linker errors out with:
undefined external '_HB_FUN_MYFUNCTION'
I presume this is because the function call to MYFUNCTION in the PRG is being translated by the preprocessor to _HB_FUN_MYFUNCTION. If I change the name of the C function to _HB_FUN_MYFUNCTION then I get a bunch more errors.
OK, so can someone tell me the secret to getting this working?
Regards,
James