Re: How to build mysqlclient.lib 5.7 without MSVCR120 dependency
Posted by: Adrián G.
Date: August 22, 2022 08:05AM

I solved my latest issue by using this command instead:

cmake -E env CXXFLAGS=-D_ALLOW_RUNTIME_LIBRARY_MISMATCH cmake -Bbuild -G "Visual Studio 12 2013" -Tv120_xp -DBUILD_CONFIG=mysql_release -DLINK_STATIC_RUNTIME_LIBRARIES=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=../my_boost -DWITH_SSL="C:\Program Files (x86)\OpenSSL" -DWITHOUT_SERVER=1

The old _ALLOW_RUNTIME_LIBRARY_MISMATCH location was wiping some essential CXX flags ("/DWIN32 /D_WINDOWS /W3 /GR /EHsc" which I found by comparing the output).

All looks good now; I can reuse mysqlclient.lib compiled in MinSizeRel mode under both Debug/Release modes of my program, without runtime crashes.

Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to build mysqlclient.lib 5.7 without MSVCR120 dependency
44
August 22, 2022 08:05AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.