I get a linker error when I try to compile some simple
code against the .lib files on windows using the MSVC:
  unresolved external symbol
_netsnmp_oid_stash_create_node


My Commandline options (copied from the property
sheet):

/OUT:"C:\oid-stash-test\Debug\oid-stash-test.exe"
/INCREMENTAL /NOLOGO /LIBPATH:"C:\usr\netsnmp-5.4\lib"
/MANIFEST
/MANIFESTFILE:"Debug\oid-stash-test.exe.intermediate.manifest"
/DEBUG
/PDB:"c:\oid-stash-test\debug\oid-stash-test.pdb"
/SUBSYSTEM:CONSOLE /MACHINE:X86 /ERRORREPORT:PROMPT
netsnmp.lib netsnmpagent.lib netsnmphelpers.lib
netsnmpmibs.lib netsnmptrapd.lib  kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib

The test code to repro is:

#include "stdafx.h"
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/mib_api.h>

int _tmain(int argc, _TCHAR* argv[])
{

        netsnmp_oid_stash_create_node();

        return 0;
}

Anyone have any insight or advice?


      
____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to