Thread: POSIX programming in Windows?

  1. #1
    Registered User
    Join Date
    Jan 2008

    POSIX programming in Windows?

    Wikipedia says "The UNIX Subsystem is built in to the Enterprise and Ultimate editions of Windows Vista". Does this mean I can compile POSIX programs in Visual Studio on Vista Ultimate? Well, I just tried that and Visual Studio can't find <unistd.h>

    #include <unistd.h>
    int main() {
        char mycwd[255];
        if (getcwd(mycwd, 255) == NULL) {
            perror ("Failed to get current working directory");
            return 1;
        printf("Current working directory: %s\n", mycwd);
        return 0;

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM