September 25th, 2003, 04:12 AM
Undefined reference to scandir + getwd
I have included dirent.h and stdlib.h and stdio.h and unistd.h and dir.h (I believe I only need dirent.h) but I still get undefined reference error. I searched through the header files but cannot seem to find scandir and getwd functions? Anybody help please? Thanks a million. I am using Dev C++ version 4.9.8.
September 25th, 2003, 04:24 AM
You may not be linking in the appropriate library.
September 25th, 2003, 11:31 AM
I think I stubbed my toe on this one too. The library containing the directory functions is libmingwex.a . I had a terrible time trying to track that one down.