coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
365 stars 127 forks source link

Missing symbols using qpoases-3.2.1 #86

Open svigerske opened 4 years ago

svigerske commented 4 years ago

Issue created by migration from Trac.

Original creator: yutaochen

Original creation time: 2018-08-29 10:51:20

Assignee: ferreau

Version: 3.2.1

When linking qpoases-3.2.1 in my application, there are some missing symbols. The errors are:

  1. undefined reference to `qpOASES::QProblem::init(double const, double const, double const, double const, double const, double const, double const, int&, double, double const, double const, qpOASES::Bounds const, qpOASES::Constraints const, double const*)'

  2. undefined reference to `qpOASES::SQProblem::hotstart(double const, double const, double const, double const, double const, double const, double const, int&, double, qpOASES::Bounds const, qpOASES::Constraints const)'

  3. undefined reference to `qpOASES::SQProblem::SQProblem(int, int, qpOASES::HessianType, qpOASES::BooleanType)'

My gcc flag is "CPPFLAGS = -Wall -O3 -march=native -mfpmath=sse -fPIC" and I follow the instructions in make_linux.mk to compile my application.

When using qpoases-3.2.0, my application is compiled without errors and it runs without any problems.

Best,

Yutao