<unistd.h>

This is a discussion on <unistd.h> within the C++ Programming forums, part of the General Programming Boards category; Hey all. I'm trying to include <unistd.h> and the compiler (Visual Studio) claims: "Error 1 fatal error C1083: Cannot open ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    15

    <unistd.h>

    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"

    anyone?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21