[英]How to use graphViz library in C++ program in Ubuntu 14.04?
When I added: #include < graphviz/cgraph.h>
in my C++ program ,I am getting this error message: fatal error: graphviz/cgraph.h: No such file or directory. 当我在C ++程序中添加
#include < graphviz/cgraph.h>
时,出现以下错误消息:致命错误:graphviz / cgraph.h:没有此类文件或目录。
By googling , I got the suggestion of adding file path of include file. 通过谷歌搜索,我得到了添加包含文件的文件路径的建议。
But I am not able to find the graphviz/cgraph.h
location. 但是我找不到
graphviz/cgraph.h
位置。
I have installed graphViz using : 我已经使用安装了graphViz:
sudo apt-add-repository ppa:dperry/ppa-graphviz-test
sudo apt-get update
sudo apt-get autoremove graphviz
sudo apt-get install graphviz
Can anyone help me out? 谁能帮我吗? Thanks.
谢谢。
apt-get install graphviz-dev
通常,软件包有单独的开发版本,其中包括头文件和其他需要开发的内容,而不仅仅是运行应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.