This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

which libary should use in order to use opendir() ...


Dear Sir/Maddam,

I am compiling some codes under cygwin. the code have the <dirent.h>
included. but I got the err message like,

saveloadwindow.o(.text+0x808):saveloadwindow.cc: undefined reference to
`opendir(char const *)'
saveloadwindow.o(.text+0x89b):saveloadwindow.cc: undefined reference to
`opendir(char const *)'
saveloadwindow.o(.text+0x8ba):saveloadwindow.cc: undefined reference to
`closedir(__DIR *)'
saveloadwindow.o(.text+0x8d0):saveloadwindow.cc: undefined reference to
`readdir(__DIR *)'

could please let me know where is wrong or which lib I am missing to cause
the problem?

Your help is much appreciated. Thanks in advance!

Fusheng 

PS: I tried to link the libcygwin, libc, ... but still didnot work.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]