Thread: <unistd.h>

  1. #1
    Registered User
    Join Date
    Dec 2007


    Hey all.

    I'm trying to include <unistd.h> and the compiler (Visual Studio) claims:
    "Error 1 fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory c:\לימודים\c++\avl_try\avl_try\avltree.h 3"


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Well it isn't a standard file, so I guess your compiler doesn't have it.

    You could try commenting out that file, because I'm not entirely sure what could be in unistd.h which an AVL tree implementation might find useful.

    Or, if this is someone else's code, have a look around to see if there are any guides for porting this software to different compilers.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed