cminpack
cminpack copied to clipboard
library cannot be linked in Visual Studio 2010
The error informations are: error LNK2001: unresolved external symbol __imp_hybrd1 error LNK2001: unresolved external symbol __imp_dpmpar
The library path and dependencies are both set in the project, how to fix it?
I do not have Visual Studio, so I cannot help much. Are you using the bundled vcxproj, or are you using cmake?
The reason is that a macro "CMINPACK_NO_DLL" is not defined in the project when static library is used, cause the wrong function prototype of the header file "cminpack.h". Thanks.
This should be fixed by https://github.com/devernay/cminpack/pull/23 which was just merged. Can you please check if it is fixed for you?