Creating POSIX applications in Windows 7?

2.1k Views Asked by At

So, is POSIX subsystem still around? I have Visual Studio 2012. I tried to compile a "hello world" Posix application and it seems to be missing the entry point:

>cl stuff.cpp /Fostuff.obj /link /subsystem:posix

LINK : error LNK2001: unresolved external symbol __PosixProcessStartup unlink.exe : fatal error LNK1120: 1 unresolved externals

Some Googling shows that I need psxdll.lib and some other libraries, but where are they? Visual Studio does not have them, and neither does the latest Windows SDK. Did they quietly kill the ability to create POSIX apps without telling anyone?

1

There are 1 best solutions below

1
On

This requires Windows 7 Ultimate or Enterprise. A minimal set of Microsoft Subsystem for Unix-based Applications (SUA) is installed, but you must download the rest of the bits from Microsoft:

http://www.microsoft.com/en-us/download/details.aspx?id=2391

Until the download package Utilities and Software Development Kit for Subsystem for UNIX-based Applications (Utilities and SDK for SUA) has been installed on the computer, you cannot run or modify UNIX-based scripts and custom UNIX-based applications.