liuq / QuadProgpp

A C++ library for Quadratic Programming which implements the Goldfarb-Idnani active-set dual method.
MIT License
285 stars 88 forks source link

function call issue #10

Closed vissa7 closed 6 years ago

vissa7 commented 6 years ago

Everything works fine but when trying to call solve_quadprog(with the arguments) an error pops up “unidentified reference to...”, even in the example code uploaded. Any solution for this?

liuq commented 6 years ago

Can you provide more context? (Operating System, compiler, etc.)

Also the full description of the error could helpful.

vissa7 commented 6 years ago

IDE: Dev C++ PC: 64-bit, running windows 10 Error: “Unidentified reference to quadprogpp::solve_quadprog(quadprogg::Matrix&,...), including all the arguments of the prototype.

Thanks for the quick support, sorry for wasting your time...

liuq commented 6 years ago

This is a linking problem, this means that the quadprog library do not link with the executable. Did you create a makefile through cmake or just compile it in Dev C++?

vissa7 commented 6 years ago

I only downloaded all files, exctracted them and run the example code on Dev C++. It’s really the first time I go through this process so excuse me for my ignorance...

liuq commented 6 years ago

Unfortunately I can't help: I am not a Dev C++ user and this has to deal with the use of the tool. I suggest to read something about library linking in Dev C++.

vissa7 commented 6 years ago

Ok man, thank you very much!!