Windows builds failing
simc opened this issue · 2 comments
simc commented
For windows builds (locally and on the CI) I always get the following error:
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
mdbx.lib(mdbx.c.obj) : error LNK2019: unresolved external symbol __imp_CharToOemBuffA referenced in function mdbx_strerror_r_ANSI2OEM
Any ideas what could be wrong?
erthink commented
Hmm, I haven't seen any logs. However, it is quite obvious that in your case, for some reason, the list of linked libraries is incorrect:
- contains more than one MSVC CRT libraries, for instance the
MSVCRTD
and same for another debug/threading/dll case. - don't include
user32
which is required forCharToOemBuffA()
.
erthink commented
Please try the rust-issue-10-windows
branch.