加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 在Windows 7中创建POSIX应用程序?

发布时间:2020-12-16 07:06:50 所属栏目:百科 来源:网络整理
导读:那么,POSIX子系统还在吗? 我有Visual Studio 2012.我试图编译一个“hello world”Posix应用程序,它似乎缺少了入口点: cl stuff.cpp /Fostuff.obj /link /subsystem:posix LINK : error LNK2001: unresolved external symbol __PosixProcessStartup unlink.
那么,POSIX子系统还在吗?
我有Visual Studio 2012.我试图编译一个“hello world”Posix应用程序,它似乎缺少了入口点:

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

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

一些谷歌搜索显示我需要psxdll.lib和其他一些库,但它们在哪里? Visual Studio没有它们,最新的Windows SDK也没有.他们是否悄悄地杀死了创建POSIX应用程序而不告诉任何人的能力?

解决方法

这需要Windows 7旗舰版或企业版.安装了一组最小的Microsoft Subsystem for Unix-based Applications (SUA),但您必须从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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读