dirent.h?

  • BLISax
    20th Jun 2011 Member 0 Permalink
    when i try to build the powder toy for the first time i get this error from VC++
    1>------ Build started: Project: The Powder Toy BLISax, Configuration: Debug Win32 ------
    1> interface.c
    1>src\interface.c(19): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    what is this "direct.h" i googled it and found it was a linux thing... im trying to build on windows. i searched the Powder toy website and it gave me no results. I'm confused

    EDIT:
    when i comment it out i get a bunch of errors with undeclared identifier, and that commands are unsafe?
    Edited by BLISax, 2011-06-18 21:16:35
  • MasterMind555
    20th Jun 2011 Member 0 Permalink
    @BLISax (View Post)
    You didn't put the path to that file correctly
    Edited by MasterMind555, 2011-06-18 21:15:41
  • BLISax
    20th Jun 2011 Member 0 Permalink
    where is dirent.h?
    i searched my computer and found nothing
  • Neospector
    20th Jun 2011 Member 0 Permalink
    No idea. Mine isn't accepting libpthread, and I've never encountered an error about dirent.h, so I have no idea.
  • MasterMind555
    20th Jun 2011 Member 0 Permalink
    @BLISax (View Post)
    Look in your project, it should be a file
    If you don't have it, make sure you downloaded all the files wrote in the wiki and placed them at the correct place.
    If you did all that, make sure it's not a typo, or just delete it to see if it runs fine without it.
    It could be like direct.h
    Edited by MasterMind555, 2011-06-18 21:23:02
  • BLISax
    20th Jun 2011 Member 0 Permalink
    inside interface.c
    #ifdef MACOSX
    #include CoreFoundation/CFString.h
    #endif
    #include stdio.h
    #include stdlib.h
    #include string.h
    #include bzlib.h
    #include math.h
    #include time.h
    #include http.h
    #include md5.h
    #include font.h
    #include defines.h
    #include powder.h
    #include interface.h
    #include misc.h
    #include console.h
    #include images.h
    #include dirent.h ***

    this is the fifth time i started from scratch on the project and each time i followed the wiki step by step.
    Edited by BLISax, 2011-06-18 21:30:51
  • MasterMind555
    20th Jun 2011 Member 0 Permalink
    @BLISax (View Post)
    Mmhhh

    Did you added those "***"?
    Edited by MasterMind555, 2011-06-18 21:31:34
  • BLISax
    20th Jun 2011 Member 0 Permalink
    no it came like that
    Edited by BLISax, 2011-06-18 21:41:05
  • MasterMind555
    20th Jun 2011 Member 0 Permalink
    @BLISax (View Post)
    try deleting em
    I'm not an expert but that looks suspicious
    Edited by MasterMind555, 2011-06-18 22:01:35
  • BLISax
    20th Jun 2011 Member 0 Permalink
    deleteing what? the includes? i tryied commenting dirent.h out already.