Rehearse icon indicating copy to clipboard operation
Rehearse copied to clipboard

How to compile my own code(includes Rehearse solver alike the example given) by g++

Open litim50711 opened this issue 5 years ago • 2 comments

I successfully install the library using "make install" and also see the right output of "make test". But now I want to include these solvers in my own code by using g++ to compile(instead of using makefile method), what should I do?

What I have tried : copy the "include" file in Rehearse to /usr/local/include and try to compile my code by g++, but it shows fatal error(CelModel.h not found).

litim50711 avatar Jun 22 '19 12:06 litim50711

So probably you would have to set the include paths of the compiler (-I flags) to find the header files where they are located.

svigerske avatar Jun 23 '19 14:06 svigerske

I successfully install the library using "make install" and also see the right output of "make test". But now I want to include these solvers in my own code by using g++ to compile(instead of using makefile method), what should I do?

What I have tried : copy the "include" file in Rehearse to /usr/local/include and try to compile my code by g++, but it shows fatal error(CelModel.h not found).

Hi, solved this question? I have the same now.

0x29aw avatar Mar 29 '21 20:03 0x29aw