link ocilib 在 windows 上使用 mingw g++
link ocilib using mingw g++ on windows
我正在尝试使用从 Internet 下载的 ocilib.h。它工作只是发现我使用 visual studio 2017。但是因为我的机器我必须使用 mingw。
Windows 10 - OS
VSCode - 文本编辑器
Mingw——编译器
语言 - C/C++
外部库 - ocilib
我只使用 g++ -g *.cpp -o main.exe,从未尝试过 link library
的复杂命令
我的当前目录是:C:\Users----\Desktop\Testing
the code that i copy from the developer
header 位置是:C:\ocilib\include(对于所有 *.h 和 *.cpp)
what inside this directory
link 位置是:C:\ocilib\lib32(对于所有 *.dll 和 *.lib)
what inside this last dir
我尝试了 -l -L -I 命令,但仍然出现一堆错误
请帮助我...提前谢谢你
您可以尝试 http://vrogier.github.io/ocilib/ and build it with gcc. I had no issues building it under MSYS2 with MinGW-w64 from http://winlibs.com/
中的 ocilib 驱动程序
我正在尝试使用从 Internet 下载的 ocilib.h。它工作只是发现我使用 visual studio 2017。但是因为我的机器我必须使用 mingw。
Windows 10 - OS VSCode - 文本编辑器 Mingw——编译器 语言 - C/C++ 外部库 - ocilib
我只使用 g++ -g *.cpp -o main.exe,从未尝试过 link library
的复杂命令我的当前目录是:C:\Users----\Desktop\Testing
the code that i copy from the developer
header 位置是:C:\ocilib\include(对于所有 *.h 和 *.cpp) what inside this directory
link 位置是:C:\ocilib\lib32(对于所有 *.dll 和 *.lib) what inside this last dir
我尝试了 -l -L -I 命令,但仍然出现一堆错误
请帮助我...提前谢谢你
您可以尝试 http://vrogier.github.io/ocilib/ and build it with gcc. I had no issues building it under MSYS2 with MinGW-w64 from http://winlibs.com/
中的 ocilib 驱动程序