Skip to content
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

Msvc runtime errors #62

Closed
xakod opened this issue Feb 1, 2022 · 2 comments · Fixed by ampl/asl#6
Closed

Msvc runtime errors #62

xakod opened this issue Feb 1, 2022 · 2 comments · Fixed by ampl/asl#6

Comments

@xakod
Copy link
Contributor

xakod commented Feb 1, 2022

Default build without any options is ok. But if I try to change runtime options I will receive link errors.
CMake options didn't work as expected. I provided options
BUILD_DYNRT_LIBS:BOOL=ON and MSVC_RUNTIME_DYNAMIC:BOOL=ON
but received error
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in gsl-test.cc.obj
I also provided additional option BUILD_MT_LIBS:BOOL=ON but error was the same.
Looks like missing runtime flag for some targets.

@ghostxiu7
Copy link

Have you tried calling CMake with the additional option "-DBUILD_SHARED_LIBS:BOOL=ON"?

@xakod
Copy link
Contributor Author

xakod commented Feb 21, 2022

@ghostxiu7 yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants