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.