c++ - Windows 上的 CPU Miner 编译

标签 c++ c compilation

<分区>

我想使用 MinGW 和 MSYS 在 Windows 上编译这个 C++ 项目

项目链接:CPU Miner

源压缩包:CPU Miner.tar.gz

在 README 文件中,它说我必须:

* Make sure you have mstcpip.h in MinGW\include
* Make sure you have libcurl.m4 in MinGW\share\aclocal
* Make sure you have curl-config in MinGW\bin

这些文件中没有一个在我电脑的正确位置,我不知道在哪里可以找到主题。

你能给我详细的编译说明吗? (我是新手)

最佳答案

答案就在 README 中您引用的文件...

Basic Windows build instructions, using MinGW:
  Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
    * Make sure you have mstcpip.h in MinGW\include
  If using MinGW-w64, install pthreads-w64
  Install libcurl devel (http://curl.haxx.se/download.html)
    * Make sure you have libcurl.m4 in MinGW\share\aclocal
    * Make sure you have curl-config in MinGW\bin
  In the MSYS shell, run:
    ./autogen.sh # only needed if building from git repo
    LIBCURL="-lcurldll" ./configure CFLAGS="-O3"
    make

没有比这更详细的了。

关于c++ - Windows 上的 CPU Miner 编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21970786/

相关文章:

从 gfortran 移植到 ifort 时出现编译错误

compilation - Haxe 如何加速编译(选择最快的目标)

c++ - 如何使用 rapidjson 读取 json 文件并输出到 std::string?

c++ - 派生 vector : Perform operations

c++ - 如何从 C++ 中的配置文件加载自定义 "const"变量?

c - 标准库与C中用户定义的头文件(.h)及其实现文件(.c)有何不同?

c++ - 比较 C/C++ 中的两个 bson_t

c - 将文件中的特定单词存储到数组中 (c)

带有运算符解释的 C 宏

javascript - 如何分析 Closure Compiler 包大小