【问题标题】:Build with libpq-fe.h on 64 bit windows with codeblocks, cannot start correctly在带有代码块的 64 位窗口上使用 libpq-fe.h 构建,无法正确启动
【发布时间】:2015-11-16 11:24:53
【问题描述】:

在 Windows 64 位上编译和运行带有代码块、连接 postgresql 的程序时遇到一些麻烦。 Postgresql 也是 64 位的。

我已经在 linux 下使用 libpq-fe.h,在 64 位或 32 位上没有问题。现在,在 Windows 上我被卡住了。

我在 windows 机器上安装了最新版本的 code::blocks,并使用了 GNU GCC 编译器。然后开始编码,一切都很好,直到我包含了 libpq-fe.h。

所以,32 位与 64 位的斗争(Libpq.dll:文件无法识别),所以我在代码块下安装并配置了它。

在 TIMESPEC 遇到一些麻烦后,它终于编译了。但没有启动。

第一个错误:

The program can't start because SSLEAY32.dll is missing from yout computer. Try reinstalling the program to fix this problem.

为了解决这个问题,我将 dll 从 postgresql 安装复制到 exe 路径。 libeay32.dll 也有同样的问题。

现在,当我启动我的 exe 时,我得到:

The application was unable to start correctly (0xc000007b). Click OK to close the application.

我认为以这种方式处理 dll 并不是一件好事。但是......我该如何解决这个错误?检查什么?

【问题讨论】:

    标签: c++ gcc codeblocks


    【解决方案1】:

    找到诀窍了。 为 windows 安装了 Openssl,最后一个 64 位版本在这里找到:http://slproweb.com/products/Win32OpenSSL.html

    现在它运行良好。

    【讨论】:

      猜你喜欢
      • 2016-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-21
      • 2015-04-25
      • 2020-03-16
      • 1970-01-01
      相关资源
      最近更新 更多