coin-or / Bonmin

Basic Open-source Nonlinear Mixed INteger programming
https://coin-or.github.io/Bonmin
Eclipse Public License 1.0
118 stars 22 forks source link

Bonmin compilation on visual studio in windows #10

Open AllenShi666 opened 4 years ago

AllenShi666 commented 4 years ago

I tried using all the .lib files and header files available to compile one of the cpp example in the repo using visual studio 2019. However, I had some error message about unresolved external symbol references. The error is mainly about calling default/virtual constructor that do not have constructor definitions. For example, MyTMINLP was trying to refer to TMINLP and calling their default constructor TMINLP(), but TMINLP is not defined anywhere in the BonTMINLP class. I am not sure how to fix these. And I had about 15 of them. Even finding a dll for Bonmin would help in my case.

Error LNK2019 unresolved external symbol "public: thiscall Bonmin::TMINLP::TMINLP(void)" (??0TMINLP@Bonmin@@QAE@XZ) referenced in function "public: thiscall MyTMINLP::MyTMINLP(void)" (??0MyTMINLP@@QAE@XZ) CppExample