I'm writing a rather simple program to include c code in gnu pascal. When the compiler encounters the following line of pascal code:
{$L cnp.c}
it generates the following error:
file `cnp.c' not found
Yet the c source code and the pascal source code are in the same directory. I tried working around this by using the full file descriptor, like this:
{$L /home/hb/pas/cnp.c }
but gpc removes the forward slashes, and gives me this error message:
file `homehbpascnp.c' not found
So, my question is: where does gpc expect to find the c code? Or, a different angle on the same issue: how do I tell it where to find the c code? Thanks