Mail Archives: cygwin/1999/04/02/12:53:36
Nirmal Vuppuluri <vuppun AT hardy DOT ntd DOT comsat DOT com> writes:
> Hi,
> I am using Cygwin B20. I am trying to use the flock() function. I
> included the file <sys/file.h>. But when I link, I still get a "undefined
> reference to 'flock'". I am linking with the standard libc.a found under
> cygnus\cygwin-B20\H-i586-cygwin32\i586-cygwin32\lib directory.
Don't. The c library is in libcygwin.a, which is linked automatically by
Cygwin GCC. `gcc -v -o foo foo.c' shows all the required libraries for a
trivial program.
>
> Also, I have some C files developed under SunOS, which do a
> "fprintf(stderr, "%s: ", cmdname);". The error outputted by the Cygwin
> gcc is "undefined reference to '_iob'".
>
You need to supply a test case, along with the output of :
$ gcc -v -o testprog testprog.c
before we can provide helpful response.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -