【问题标题】:link ocilib using mingw g++ on windows在 Windows 上使用 mingw g++ 链接 ocilib
【发布时间】:2020-04-24 09:05:27
【问题描述】:

我正在尝试使用从 Internet 下载的 ocilib.h。它的工作原理是我使用 Visual Studio 2017。但由于我的机器,我必须使用 mingw。

Windows 10 - 操作系统 VSCode - 文本编辑器 Mingw - 编译器 语言 - C/C++ 外部库 - o​​cilib

我只使用了 g++ -g *.cpp -o main.exe,从未尝试过链接库的复杂命令

我的当前目录是:C:\Users----\Desktop\Testing

the code that i copy from the developer

标头位置是:C:\ocilib\include(对于所有 *.h 和 *.cpp) what inside this directory

链接位置是:C:\ocilib\lib32(适用于所有 *.dll 和 *.lib) what inside this last dir

我尝试了 -l -L -I 命令,但仍然出现一堆错误

请帮助我...提前谢谢你

【问题讨论】:

  • 你在 g++ 和 Visual Studio 中使用相同的.lib 吗?如果没有您收到的错误消息,我必须使用我的超自然球体。摆脱图像,只显示代码或文件列表。
  • 对于 g++ 和 Visual Studio 是相同的 .lib。
  • 编译器使用不同的名称修饰,因此 g++ 不太可能处理 VS 的,这适用于 .lib 和 .dll

标签: oracle gcc visual-studio-code g++ mingw


【解决方案1】:

您可以尝试http://vrogier.github.io/ocilib/ 的 ocilib 驱动程序并使用 gcc 构建它。我在 MSYS2 下使用 http://winlibs.com/ 的 MinGW-w64 构建它没有问题

【讨论】:

  • 谢谢我已经用那个东西替代了 2 个月了.hehehe
猜你喜欢
  • 1970-01-01
  • 2015-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-04-14
  • 1970-01-01
相关资源
最近更新 更多