Linker options

Nuñez Correas, Fernando <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all!. Im developing a subagent with net-snmp libraries and I've got very problems to build it. Im using winxp, mingw (gcc for windows) and eclipse ide. I download the example-demo and compile in my other machine with red hat linux, all perfect. But in windows I'm obtaining very errors. 
 
In building option, I include the directory C:\usr\include, it contains net-snmp directory h files. Only I get two warnings, but it compile. 
 
In linker option, I get very very erros and I dont know how to resolve it. In linker option I add: 
 
Librarie search path: C:\usr\lib (-L"c:\usr\lib")
Librariers: netsnmpmibs, netsnmpagent, netsnmphelpers,netsnmp (-lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp)
 
With this options, the output errors are:
 
Warning: .drectve `-defaultlib:MSVCRT ' unrecognized
Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
C:\usr\lib\netsnmpmibs.lib(./release/system_mib.obj):..\..\agent\mibgro:(.text[_init_system_mib]+0x25): undefined reference to `gethostname@8'
C:\usr\lib\netsnmpmibs.lib(./release/system_mib.obj):..\..\agent\mibgro:(.text[_windowsOSVersionString]+0x478): undefined reference to `gethostname@8'
C:\usr\lib\netsnmpagent.lib(./release/snmp_agent.obj):..\..\agent\snmp_a:(.text[_agent_check_and_process]+0x6d): undefined reference to `select@20'
C:\usr\lib\netsnmpagent.lib(./release/snmp_agent.obj):..\..\agent\snmp_a:(.text[_init_master_agent]+0xc5): undefined reference to `real_init_master'
C:\usr\lib\netsnmpagent.lib(./release/snmp_vars.obj):..\..\agent\snmp_v:(.text[_init_agent]+0x7e): undefined reference to `agentx_config_init'
C:\usr\lib\netsnmpagent.lib(./release/snmp_vars.obj):..\..\agent\snmp_v:(.text[_init_agent]+0x94): undefined reference to `subagent_init'
C:\usr\lib\netsnmpagent.lib(./release/snmp_vars.obj):..\..\agent\snmp_v:(.text[_init_agent]+0xc0): undefined reference to `init_usmConf'
C:\usr\lib\netsnmpagent.lib(./release/snmp_vars.obj):..\..\agent\snmp_v:(.text[_init_agent]+0xd6): undefined reference to `init_iquery'
C:\usr\lib\netsnmpagent.lib(./release/snmp_vars.obj):..\..\agent\snmp_v:(.text[_init_agent]+0xec): undefined reference to `init_vacm_conf'
C:\usr\lib\netsnmpagent.lib(./release/agent_read_config.obj):..\..\agent\agent_:(.text[_update_config]+0x19): undefined reference to `vacm_standard_views'
C:\usr\lib\netsnmpagent.lib(./release/agent_index.obj):..\..\agent\agent_:(.text[_register_index]+0xbd): undefined reference to `agentx_register_index'
C:\usr\lib\netsnmpagent.lib(./release/agent_index.obj):..\..\agent\agent_:(.text[_unregister_index]+0x21): undefined reference to `agentx_unregister_index'
collect2: ld returned 1 exit status
mingw32-make.exe: *** [example.exe] Error 1
mingw32-make.exe: Target `all' not remade because of errors.
Build complete for project example
 
 
Im searching in mailing list, google, and I dont find some solutions.... Can anyone help me?
 
I think, there is some libs that I forgot add to options, but I dont know which it is this library....
 
Thanks!!!
 
 
 
 
Fernando Núñez Correa

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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.