View previous topic :: View next topic |
Author |
Message |
Y2JB
Joined: 28 Jan 2011 Posts: 4
|
Posted: Tue Feb 01, 2011 4:37 pm Post subject: libs are not exporting correctly (Win32) |
|
|
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 |
|
|
Y2JB
Joined: 28 Jan 2011 Posts: 4
|
Posted: Wed Feb 02, 2011 10:05 am Post subject: |
|
|
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 |
|
|
|