简体   繁体   English

如何从 cpp 程序运行 bonmin

[英]how to run bonmin from a cpp program

I've already downloaded Bonmin-1.8.8 and compiled it.我已经下载了 Bonmin-1.8.8 并编译了它。 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用户手册说 /bonmin/examples/cppexample 中有一个 cpp 示例。我将 bin 和 lib 添加到我的路径中,但是当我编码时

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.我想知道如何使用 cpp 程序运行 Bonmin。

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] -I [/path/to/header-files]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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