-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
LNK2019 unresolved external symbol __imp_strncpy referenced in function gotoblas_dynamic_init #2825
Comments
Suspect there is either a "debug" version of msvcrt, or a dedicated library of debug symbols available in/for VS2017. This is unlikely to be an OpenBLAS-specific problem, try google. |
Actually I was able to fix linkage issue by changing "C/C++ -> Code Generation -> Runtime Library" for both of my library and test application. I'm guessing that C runtime now will be loaded dynamically instead of the old static linkage with /MTd, not sure what kind of drawbacks it can produce, but anyway, now it works. |
Yeah. I meed the same problem. Great help for me. Thanks! |
I love you guys, It works for me too!!! This is amazing! |
Really helpful!!! |
Hello, what if I want to link staticlly? |
Hi,
I have some library, which is using the openBLAS and that library containing BLAS is linked statically to my test executable. Here I'm facing some strange linkage issue.
I'm using windows VS2017 x64, so I did an openBLAS build using <1. Native (MSVC) ABI> as it was described in build doc.
When I'm linking the libopenblas with my own static library to my executable, I'm facing the following linker issue:
LNK2019 unresolved external symbol __imp_strncpy referenced in function gotoblas_dynamic_init
After digging in the web I've found some solution to this issue to link "msvcrt.lib" as well.
After adding "msvcrt.lib" to my project's "Linker -> Inputs" solved the issue for Release target, but for Debug after linking the same "msvcrt.lib" I'm facing a lot of other linker issues:
Error LNK2001 unresolved external symbol _invalid_parameter
Error LNK2001 unresolved external symbol _calloc_dbg
Error LNK2001 unresolved external symbol _free_dbg
Error LNK2001 unresolved external symbol _malloc_dbg
Error LNK2001 unresolved external symbol _CrtDbgReport
Error LNK2001 unresolved external symbol _CrtDbgReportW
Has someone faced this kind of issue?
Thanks in advance
The text was updated successfully, but these errors were encountered: