C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-24-2009, 11:01 PM   #1
Registered User
 
Join Date: Jan 2008
Posts: 64
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>

Code:
#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;
}
jw232 is offline   Reply With Quote
Old 10-25-2009, 09:03 AM   #2
Registered User
 
Codeplug's Avatar
 
Join Date: Mar 2003
Posts: 3,844
I couldn't find that quote...

Closest thing I found: Windows Vista - Wikipedia, the free encyclopedia

Related info:
Porting from UNIX to Win32
/SUBSYSTEM (Specify Subsystem)

http://www.cygwin.com/

gg

Last edited by Codeplug; 10-25-2009 at 09:06 AM.
Codeplug is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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