CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Location
    Dhaka, Bangladesh
    Posts
    3

    Unable to compile/link SNMP++ sample under Linux

    Hello,

    I am new in the world of snmp++. Recently I have downloaded the latest version of snmp++ for Linux and tried to compile the sample (specifically Qt example). While I try to "make" the sample, at one stage it shows the following message and exit the make utility:

    /usr/bin/ld: Cannot find -lsnmp++

    Looks like a library file is missing.

    Can any one tell me how to solve this problem?

    Thanks in advance.

  2. #2
    Join Date
    May 2006
    Location
    Indonesia & Japan
    Posts
    399

    Re: Unable to compile/link SNMP++ sample under Linux

    Try to find libsnmp++.so in you library path.
    henky
    ----------------------------------
    [email protected] is not my email address anymore...
    Jangan Pernah Menyerah

  3. #3
    Join Date
    Sep 2008
    Location
    Dhaka, Bangladesh
    Posts
    3

    Re: Unable to compile/link SNMP++ sample under Linux

    Thanks for your response. I have copied the SO file in the path specified in the make file, which is "/snmp++/lib". But now following new error messages are showing up:

    ../lib/libsnmp++.so: undefined reference to `des_key_sched'
    ../lib/libsnmp++.so: undefined reference to `des_ncbc_encrypt'
    collect2: ld returned 1 exit status

    Can you please tell me what to do this time?

  4. #4
    Join Date
    May 2006
    Location
    Indonesia & Japan
    Posts
    399

    Re: Unable to compile/link SNMP++ sample under Linux

    I'm not sure. It seems libsnmp++ calls encryption library. It looks like DES library. You need to link with this library also.
    henky
    ----------------------------------
    [email protected] is not my email address anymore...
    Jangan Pernah Menyerah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured