Menu

opendir readdir does not work under 4.9.5.0

2002-08-02
2012-09-26
  • Nobody/Anonymous

    I uninstalled version 4 and did a clean install of Dev-C++ 4.9.5.0

    I tried compiling a program which I had previously compiled with version 4.

    The Beta 5 version did not recognize the functions in dirent.h.

    I had the following errors:
    link error undefined reference (opendir)
    link error undefined reference (readdir)

    Next I completely uninstalled the Beta 5 version and did a clean install of the previous version 4 and everthing works fine.

    How can I use Beta 5 version with the functions in dirent.h?

     
    • Nobody/Anonymous

      I think Mingw version used in 4.9.5.0 is slightly diffrerent from the old one. Try to add:  -lmingwex    to project_options->linker_options.
      Martin

        

       
    • Murad Khan

      Murad Khan - 2002-08-14

      Martin you are beautiful. Now how else could I have found out that opendir, closedir etc. were in mingwex?

      I'm been pulling out what little hair I have left for the past 3 hours trying to figure this thing out. I posted to the group, but no response.

      Thanks.
      Murad

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.