cminpack icon indicating copy to clipboard operation
cminpack copied to clipboard

library cannot be linked in Visual Studio 2010

Open zhenhaochu opened this issue 6 years ago • 3 comments

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?

zhenhaochu avatar Nov 15 '18 10:11 zhenhaochu

I do not have Visual Studio, so I cannot help much. Are you using the bundled vcxproj, or are you using cmake?

devernay avatar Nov 15 '18 22:11 devernay

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.

zhenhaochu avatar Nov 16 '18 00:11 zhenhaochu

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?

devernay avatar Feb 12 '19 17:02 devernay