embotech / ecos

A lightweight conic solver for second-order cone programming.
GNU General Public License v3.0
479 stars 123 forks source link

Inconsistent definition of DLONG and LDL_LONG #179

Open marcelino-pensa opened 5 years ago

marcelino-pensa commented 5 years ago

Hi,

I am adding ecos to my C++ project, and it get to the following compiling error (line 84 of glblopts.h): Inconsistent definition of DLONG and LDL_LONG

It seems that DLONG is defined but LDL_LONG is not. I don't really know what this means, though... looks like this is a variable defined in LDL, and "ldl.h" is included in "kkt.c". However, I am not sure if I am supposed to worry about this error, since I am just linking ecos' static libraries to my project (i.e., I don't have to recompile kkt.c, since it is already compiled).

So my questions are:

Just to clarify, this is what I have done to add ECOS to my c++ project:

BTW, my project compiles if I delete line 84 of glblopts.h. I was also able to solve the example of "test/feasibilityProblems/feas.h".