[英]How to pass parameters to dot layout engine using c++ graphviz library?
When run my c++ program, it breaks down with an error that tells -Gcharset=latin1 is wanted for layout engine. 当运行我的c ++程序时,它会出现错误,告诉布局引擎需要-Gcharset = latin1。 Then how to pass the parameter to it when calling gvLayout(context, graph, "dot")?
那么在调用gvLayout(context,graph,“dot”)时如何将参数传递给它?
您可以使用agsafeset
设置正确的字符编码,例如:
agsafeset(graph,"charset","Latin1","");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.