------- Comment #2 from jojelino at gmail dot com 2010-08-11 09:59 ------- (In reply to comment #1) > Created an attachment (id=21451) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21451&action=view) [edit] > testcase >
and it is resolved by changing __attribute__ ((dllimport)) to __attribute__ ((visibility("default"))) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45255