donlp with maxima



I'd like to use the optimization library donlp2 with maxima. Has anyone 
succeeded in doinf this?

I tried to use f2cl on the fortran code, but f2cl doesn't hande iclude 
files. So I pasted them into one big file but now I get an 

Alternatvely, it may be an idea to use cffi together with the C version 
of donlp. But this seem sto be tricky as the function evaluation from 
the C code requires callbacks to Lisp.

Any suggestions?