【发布时间】:2020-04-24 09:05:27
【问题描述】:
我正在尝试使用从 Internet 下载的 ocilib.h。它的工作原理是我使用 Visual Studio 2017。但由于我的机器,我必须使用 mingw。
Windows 10 - 操作系统 VSCode - 文本编辑器 Mingw - 编译器 语言 - C/C++ 外部库 - ocilib
我只使用了 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