libtool: undefined symbols not allowed in i686-pc-mingw32 shared

邮差的信 提交于 2019-12-03 17:10:56

In your configure.ac, make sure your libtool initialization looks like:

LT_INIT([win32-dll])

Also, you need to pass -no-undefined flag to libtool in your Makefile.am. This flag disables the warning you are getting:

libexample_la_LDFLAGS = -no-undefined

More details about this in the LT_INIT documentation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!