带swig的模块名称

问题描述 投票:1回答:1

我正在尝试使用swig来创建perl模块。

%module mymodule

工作,但

%module mymoduele::mymodule 

不起作用。有没有办法让这项工作?

c++ perl swig
1个回答
2
投票

您缺少模块名称周围的双引号。据the documentation说:

要为模块提供嵌套命名空间,只需在%module指令中提供完全限定名称:

%模块“Foo :: Bar :: Baz”

注意:双引号是必要的。

© www.soinside.com 2019 - 2024. All rights reserved.