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 

Unresolved external symbol errors when linking on VC++ 2010

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



Joined: 13 Jan 2011
Posts: 2

PostPosted: Thu Jan 13, 2011 12:27 pm    Post subject: Unresolved external symbol errors when linking on VC++ 2010 Reply with quote

Hi Folks,

I am getting unresolved external symbols for each miniupnp method I use in my project: -

Code:
3>NetworkEngine.lib(ServerRaknet.obj) : error LNK2019: unresolved external symbol __imp__UPNP_GetValidIGD referenced in function "public: virtual void __thiscall Sirocco::ServerRaknet::start(void)" (?start@ServerRaknet@Sirocco@@UAEXXZ)
3>NetworkEngine.lib(ServerRaknet.obj) : error LNK2019: unresolved external symbol __imp__upnpDiscover referenced in function "public: virtual void __thiscall Sirocco::ServerRaknet::start(void)" (?start@ServerRaknet@Sirocco@@UAEXXZ)
3>E:\Workspace\trunk\Sirocco\main\code\SiroccoVS2005\Release\Orc.exe : fatal error LNK1120: 2 unresolved externals


I am definitely linking to miniupnpc.lib in the msvc/release directory as when I remove the release directory from the list of linker dirs it can't find the lib.

Any ideas what I could be doing wrong?
Thanks for your help
All the best,
Ash
Back to top
View user's profile Send private message
AshMcConnell



Joined: 13 Jan 2011
Posts: 2

PostPosted: Thu Jan 13, 2011 1:55 pm    Post subject: Reply with quote

Got it working!

Just needed to define STATICLIB in my own project.

It also works properly on my Thomson SpeedTouch TG585v7 (O2 wireless box in the UK). Other methods of uPnP didn't work.

Thanks for a great lib!

All the best,
Ash
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 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.