【发布时间】: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