God day, dear sourceforge

 

I am currently working on a project that requires SNMP protocol and I chose to use net-snmp because of its simplicity and stability. My first part of the project was to program on Linux,  which turned out to be a walk in the park thanks to your excellent documentation. Thank you!

But the second part of my project is to convert that same code to windows, which turned out to be a living nightmare.

There was no code examples or good documentation on this part, especially the library part.

 

Anyways, my problem is that I downloaded the source code for windows, and compiled it from scratch, following the help documentation.

It all seemed to be in order, until I started to code using net-snmp functions. Then I got an error, a Link error, which stated that it couldn’t find init_snmp(), init_mib() and all the net-snmp functions. I read some more in the documentation and went into the configuration of the compiler and chose to insert the library name ( the one that was compiled and is in the LIB directory. I was wondering if you could help me with this linking problem and give me some guides on how to implement the library into the visual c++ and .NET

I have used the exact same code from Linux (which worked nice) and into the visual c++, included the header files needed. Note that Im not using any compiled programs from net-snmp, only the functions.

 

I have tried to look into the sourceforge archives for any simulare problems without any luck.

 

This is one of the errors: snmpProgram.obj : error LNK2001: unresolved external symbol @[EMAIL PROTECTED]

 

Sincerely yours

Egil Andre Greaker

 

Reply via email to