
Seems to me as a single/multi-threaded related issue. Make sure libSMI and your application use both the same run-time compilation flags(/MD, /ML, /MT/, LD).
If, for example, you have built libsmi with /MD (or /MDd) flag defined (i.e, multithreaded dll), then use the same one to built your application.
Arie.
-----Original Message----- From: Alberto CaamaƱo [mailto:sg_alberto@hotmail.com] Sent: Sunday, February 03, 2002 11:37 PM To: libsmi@ibr.cs.tu-bs.de Subject: RE: [libsmi] Problem linking in MSVC++
Hi. I have a lot of problems linking libsmi in MSVC++ 6.0.
I declare the header file: extern "C" { #include <smi.h> }
and I obtain the following error:
smi.lib(data.obj) : error LNK2001: unresolved external symbol _errno smi.lib(scanner-smi.obj) : error LNK2001: unresolved external symbol _errno Debug/SnmpExtensionAgent.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
Thanks.
Alberto.
Descargue GRATUITAMENTE MSN Explorer en
http://explorer.yupimsn.com/intl.asp
participants (1)
-
Arie Trost