Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent definition of DLONG and LDL_LONG #179

Open
marcelino-pensa opened this issue Jul 5, 2019 · 0 comments
Open

Inconsistent definition of DLONG and LDL_LONG #179

marcelino-pensa opened this issue Jul 5, 2019 · 0 comments

Comments

@marcelino-pensa
Copy link

marcelino-pensa commented Jul 5, 2019

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:

  • Is LDL_LONG important? Can I comment-out that error in line 84 of glblopts?
  • If it isn't important, why is it necessary to do those checks?

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

  • Copied the include folder into my project
  • Copied the static libraries into my project (.a files)
  • Linked the .a files when compiling
  • Added "ecos.h" to my files that will use ecos

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant