I tried on Windows MinGW and I don’t get this error, but on Linux MinGW I get this kind of error when cross compiling:
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lsqlite3: No such file or directory
/usr/bin/x86_64-w64-mingw32-ld: cannot find loleaut32: No such file or directory
collect2: error: ld returned 1 exit status
Compiling command: x86_64-w64-mingw32-gcc -o app_64.exe app.c -lws2_32 -lsqlite3 -lcrypt32 -lwbemuuid -lole32 loleaut32
When including library headers, I encounter no issues like with wbemidl.h
. However, errors arise when I attempt to import libraryoleaut32.dll
, similar to the situation with the sqlite3 header and library.
wuku is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.