-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Windows native-native-gnu can't find odbc32.lib #9124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is probably why: #6565. Try setting the target to |
I think I'm still missing something, once I specify that then the When I import this: @cImport({
@cDefine("__MSABI_LONG(x)", "(long)(x)");
@cInclude("windows.h");
@cInclude("sql.h");
@cInclude("sqltypes.h");
@cInclude("sqlext.h");
}) Then it can't seem to find the header files. Whichever one is listed first will be shown in the error message, so for example:
|
Looks like this is the same issue as this: #9093 |
Just tested on Windows |
Not sure if this is an issue with Zig or something else that Zig is depending on, but I've noticed some issues in 0.8/master regarding using and linking to
odbc32.lib
on Windows. I've also tested on macos with master and found no issues.I've confirmed that none of the below issues are present on Zig
0.8.0-dev.2305+d228d8605
.__MSABI_LONG(x)
no longer works. I mentioned in the original issue Error when trying to import Windows SQL headers #9120 and was shown a fix that seems to work, but I'm still curious why it broke in the new release.#define
's are no longer present:odbc32.lib
.If I try to build a project which links against
odbc32.lib
in Zig version0.9.0-dev.140+4173a2bc2
, I get the following error:The same code running on Zig
0.8.0-dev.2305+d228d8605
links with no issues, on the exact same Windows configuration.The text was updated successfully, but these errors were encountered: