Mathius...
A friend of mine had the same problem and figured out that
the libraries need to be linked for the compiler to work.
The documentation does not say to do this, but it works.
Hope this helps!
Regards...
Jeff
> Hello people,
> I do not have any idea of UNIX, but I have to compile a c source code to
> use it as a cgi script.
> There's what I tried:
> webfactory: {11} % gcc -o test.cgi test.c cgihtml.a
> test.c:3: process.h: No such file or directory
> test.c:4: dos.h: No such file or directory
> test.c:5: io.h: No such file or directory
> webfactory: {12} %
> cgihtml.a is a library I will have to use. It seems to me as if there
> were some include files missing. I checked out the whole system but was
> unable to find them. Transferring the files from my local computer (Win
> NT-based) causes some more error messages.
> Programs (better source codes) using just stdio.h work fine.
> Someone told me not to use these missing include files to check out
> which functions are not supported. I did so and found that sleep() and
> getpid() need those files.
> (I need them for file I/O. In my manual, it is suggested to create a
> "lockfile" to prevent multiple write accesses to a file at a time; i.e.
> the program should check wheter this file exists. If so, it should wait
> (--> sleep() ) a few seconds and retry. In the given example, after the
> lockfile is created the pid is written into it, claiming that would be
> neccessary on UNIX platforms.)
> Have you got any solutions?
> Thanks in advance,
> Matthias
> ____________________________________________________
> -----------------------------------------------------------------------
> Matthias Pigulla
> Please remove 'XXX' from email address when replying.
> Please mail all responses.
> Thank you.
> -----------------------------------------------------------------------