简体   繁体   中英

how to run bonmin from a cpp program

I've already downloaded Bonmin-1.8.8 and compiled it. The usersmanual said that there is a cpp example in the /bonmin/examples/cppexample.I added the bin and lib to my Path but when I coded

g++ mybonmin.cpp -o mybonmin

It shows that cannot find the headfile. I want to know how can I run Bonmin with the cpp program.

Try passing the flag to the headers:

g++ mybonmin.cpp -I/home/mybonmin -o mybonmin

here more info about it:

-I [/path/to/header-files]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM