OpenHome Forum
OhNet libs MSVC2012 - Printable Version

+- OpenHome Forum (http://forum.openhome.org)
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: OhNet libs MSVC2012 (/showthread.php?tid=1229)



OhNet libs MSVC2012 - ChriD - 22-03-2014 05:04 PM

Hi,

i have use OhNet in a .NET application and it worked very well.
Now i try to use the libs in a simple c++ Application.
First of all i built the ohNet with MSVC2012 to get correct libs (version) for my Appllication because the prebuilt ones are built with MSVC2010

This worked fine. But now if i want to use the libs i run into an linker error:
Code:
error LNK2001: Nicht aufgelöstes externes Symbol "_GetIfTable@12" (libOhNetCore.lib)(Os.obj)    
error LNK2001: Nicht aufgelöstes externes Symbol "_GetIpAddrTable@12" (libOhNetCore.lib)(Os.obj)

i've linked following ohNet libs into my project
Code:
ibohNetCore.lib
libohNetDevices.lib
libohNetProxies.lib
libShell.lib
ohNetJni.lib
ohNetTestsCore.lib
libTestFramework.lib
ohNet.lib

is there a problem with the MSVC2012?

Thanks
Chris


RE: OhNet libs MSVC2012 - simonc - 22-03-2014 07:42 PM

These functions are provided by Iphlpapi.lib - you need to link to this in addition to the other libs you mentioned.


RE: OhNet libs MSVC2012 - ChriD - 23-03-2014 12:10 AM

(22-03-2014 07:42 PM)simonc Wrote:  These functions are provided by Iphlpapi.lib - you need to link to this in addition to the other libs you mentioned.
Thank you! It works now!