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

Add /MT to MSVC when compiling shared library #186

Open
rsp4jack opened this issue Apr 26, 2022 · 2 comments
Open

Add /MT to MSVC when compiling shared library #186

rsp4jack opened this issue Apr 26, 2022 · 2 comments
Assignees
Labels

Comments

@rsp4jack
Copy link

When compiling the shared library of DUMA with default /MD, it will raise LNK4006 error. (I forgot the error message... Maybe strcat or something in C runtime library)

I set /MT, and it compiles successfully. But that may raise error when link with an application with /MD.

Notice: Set /MT or /MD to every subproject in the project (such as stacktrace library, see #184)

@johnsonjh johnsonjh self-assigned this Apr 28, 2022
@johnsonjh
Copy link
Owner

I plan to replicate, @Creepercdn thanks for the reports - what version of MSVC are you using?

@rsp4jack
Copy link
Author

msvc 14.31.31103
Visual Studio 2022

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

No branches or pull requests

2 participants