c++ - 在 linux 上安装 nsis 失败 exitcode1

标签 c++ linux installation nsis

我正在尝试在 Linux 上安装 Nsis, 我找到了一个很棒的安装指南:http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer---NSIS-on-Linux-.aspx 问题是它在最后一步失败了: scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA=no PREFIX=/usr/local/nsis/nsis-2.46 install-compiler

这是我得到的输出:

Source/script.cpp:6460:1:   required from here
Source/util.h:145:1: error: 'close' was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

错误是:未在此范围内声明“close”……。 我试着运行它几次,并在互联网上查找解决方案,但我认为这是一台 64 位机器而不是 32 位机器有问题。

有什么想法吗?

最佳答案

尝试添加 #include <unistd.h>到 util.h

最近有一个bug report关于 close() 但那是在 OSX 上并且与编译器/C++ 库更改有关,所以我不确定它是否适用,但它可能值得研究......

关于c++ - 在 linux 上安装 nsis 失败 exitcode1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20120110/

相关文章:

python - virtualenv 上的 Redhat Python 2.7.6 安装

perl - 如何在没有 root 访问权限的情况下在本地安装 CPAN 模块(DynaLoader.pm 第 229 行错误)?

c++ - 抛出 'std::out_of_range' 实例后调用终止

c++ - 关于 C++ 中的构造函数和赋值运算符

c++ - 为什么编译器不能优化这个 std::string 结构?

c++ - 为什么这是有效的? (具有不同参数的模板类的模板友元函数)

arrays - Bash、数组和空格的奇怪行为

linux - SCP 给出 "File or directory not found"

mysql - iRedMail 缺少 apache2-mod-auth-mysql

linux下直接通过命令行执行python