linkage error while compiling the scalar_int.c
"taner memet ali" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <000b01c5d272$f1161c70$6501a8c0@psilaptop> |
Hi all, I wanted to test the scalar_int.c with VS.NET and have following linkage errors: unresolved external Symbol _main, referenced in Function _mainCRTStartup unresolved external Symbol _netsnmp_register_int_instance, referenced in Function _init_scalar_int I use the winsdk.dsw project map with VS.NET ans net-snmp 5.2.1.2 I succesfully compiled the snmpdemoapp.c before by editing the project "Project"->"Settings" dialog like the other projects that have executables as output (e.g. snmpget) Therefore i made a new project, copied the source code and set the settings like i did it for snmpdemoapp.c but have the linkage errors above. this is my linkpath at "Linker"->"inculde Path" .; ..; ..\..\snmplib; ..\..\include; ..\..\agent; ..\..\agent\mibgroup; ..\lib\debug; ..\..\agent\helpers this is the Command line for my compiler /Od /I "." /I ".." /I "..\..\snmplib" /I "..\..\include" /I "..\..\agent" /I "..\..\agent\mibgroup" /I "..\lib\debug" /I "..\..\agent\helpers" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /MDd /GS /YX"stdafx.h" /Fp".\Debug/mibscalar.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug/" /W3 /nologo /c /Zi this is the Command line for my linker /OUT:"../mibscalar/debug/mibscalar.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\usr\net-snmp-5.2.1.2\win32\lib\debug" /DEBUG /PDB:".\Debug/mibscalar.pdb" /SUBSYSTEM:CONSOLE netsnmp.lib ws2_32.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 "\usr\net-snmp-5.2.1.2\win32\lib\debug\netsnmp.lib" i know that the unresolved symbols belong to the new API 5.2.1.2 But i have compiled this API and the libs that i use belong to the new API Thanks in advance for any hints ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users