I am trying to use ALGENCAN for the first time, and would like to call the solver from C. I followed the instructions in README to build the library, and am trying to build one of the given C examples:
g++ -O3 toyprob.c -L$ALGENCAN/lib -lalgencan -o algencan
I get the error message:
toyprob.c:279:40: error: ‘c_algencan’ was not declared in this scope
&f,&cnorm,&snorm,&nlpsupn,&inform);
^
Also, "_Bool" is not recognized as a type, so there are several more errors related to that. The C examples compile without issue in version 2.4.0. I'm not familiar with Fortran so I'm at a loss here. It seems like there should be a declaration of the c_algencan function somewhere, but why would this be missing?
Thanks,
-- Ken