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 

Compile with both miniupnpc and natpmp

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
Chunky



Joined: 07 Jul 2015
Posts: 2
Location: FRANCE

PostPosted: Tue Jul 07, 2015 7:18 pm    Post subject: Compile with both miniupnpc and natpmp Reply with quote

Hello,

I'm having troubles compiling a project which uses both libminiupnpc and libnatpmp (static version for both).

I think it's because those two libraries have their own declspec.h file with different define statements inside (I'm on windows so : LIBSPEC for natpmp and MINIUPNPC_LIBSPEC for miniupnp) but just one of them is included depending which library I include first (miniupnpc.h or natpmp.h)...

I know it is a normal behavior but I don't know how to "fix" this problem properly Confused

Can you help me ?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Thu Jul 09, 2015 10:19 am    Post subject: Reply with quote

rename files...

it should be done, but I have had no time yet...
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Chunky



Joined: 07 Jul 2015
Posts: 2
Location: FRANCE

PostPosted: Thu Jul 09, 2015 5:32 pm    Post subject: Reply with quote

Thank you, I did not know if it was a proper way to do Smile

And thank you also for all the good work you did with those libraries!
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Tue Jul 21, 2015 1:29 pm    Post subject: Reply with quote

See miniupnpc-1.9.20150721.tar.gz
and https://github.com/miniupnp/miniupnp/commit/d456889b5241d51165b57576597d877ee1cb823a
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation 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.