miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

libs are not exporting correctly (Win32)

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
Y2JB



Joined: 28 Jan 2011
Posts: 4

PostPosted: Tue Feb 01, 2011 4:37 pm    Post subject: libs are not exporting correctly (Win32) Reply with quote

The libs output by the test project for both miniupnp and libnatpmp do not contain the relevant library functions. For example libnatpmp.lib does not contain initnatpmp, instead there are several functions with corrupted names. I have tried this under visual studio 2008 & 2010 and have made new projects under both, the problem persists.

To test this bug simply build the test projects and open the .lib in a viewer.

When building from source the libraries work correctly.
Back to top
View user's profile Send private message
Y2JB



Joined: 28 Jan 2011
Posts: 4

PostPosted: Wed Feb 02, 2011 10:05 am    Post subject: Reply with quote

Sorry this turned out to be my fault, not having STATICLIB defined when using the static libs in another project. On a side note, STATICLIB should probably be renamed, its pretty generic and may end up conflicting with other libraries.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.