Unresolved external Symbol error with MSVC.Net (MSVC7.1) while compiling snmpdemoapp.c

"taner memet ali" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <005a01c5ccea$14b95130$6501a8c0@psilaptop>
Hi,
i try to compile the simple demo application with MSVC.NET.

I get following errors:

test error LNK2019: unresolved external Symbol _init_snmp,  in function
_main
test error LNK2019: unresolved external Symbol _netsnmp_free,  in function
_main
test error LNK2019: unresolved external Symbol _netsnmp_malloc,  in function
_main
test error LNK2019: unresolved external Symbol _netsnmp_strdup,  in function
_main
test error LNK2019: unresolved external Symbol _print_variable,  in function
_main
test error LNK2019: unresolved external Symbol _read_objid,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_add_null_var,  in
function _main
test error LNK2019: unresolved external Symbol _snmp_close,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_errstring,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_free_pdu,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_log,  in function _main
test error LNK2019: unresolved external Symbol _snmp_open,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_pdu_create,  in
function _main
test error LNK2019: unresolved external Symbol _snmp_perror,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_sess_init,  in function
_main
test error LNK2019: unresolved external Symbol _snmp_sess_perror,  in
function _main
test error LNK2019: unresolved external Symbol _snmp_sync_response,  in
function _main
test error LNK2019: unresolved external Symbol _winsock_cleanup,  in
function _main
test error LNK2019: unresolved external Symbol _winsock_startup,  in
function _main

so far i know these are the functions of the net snmp library

I linked following netsnmp libraries with the linker

netsnmp.lib
netsnmpagent.lib
netsnmphelpers.lib
netsnmpmibs.lib
netsnmptrapd.lib

has it to do with this code snippet?:
/*

* Initialize the SNMP library

*/

init_snmp("snmpapp");



all files are in the project folder of the MSVC.NET

what should i copy to the project folder to get it work?

i already edited the headers , the source and copied the source, the libs
and the headers to project folder.

I would be very  grateful if someone could point me to the right direction.

with best regards



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.