8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ImportError: dynamic module does not define init function

Posted at

Boost.Pythonでビルドは問題なく通ったのにインポートしようとすると ImportError: dynamic module does not define init function (initbar_ext) と怒られてしまった。

これはモジュールの宣言の名前が間違っていたことが原因だった。下記コードではbar_extにすべきところがfoo_extになっている。

BOOST_PYTHON_MODULE(foo_ext)
{
	...
}

めったに書き換えないから記憶からページアウトしてた。

8
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?