Re: link an additional library

This is a discussion on Re: link an additional library within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, 23 Mar 2005 16:26:47 -0800 Fong wrote: FT> I am trying to register some MIB ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2005
Robert Story
 
Posts: n/a
Default Re: link an additional library

On Wed, 23 Mar 2005 16:26:47 -0800 Fong wrote:
FT> I am trying to register some MIB to the master agent and need to link an
FT> additional library. This library, libmymib.a, is compiled in g++. I use
FT> --with-libs option in configure. However, when it tries to make snmpd,
FT> it complains that " ./.libs/libnetsnmpmibs.so: undefined reference to
FT> `MY_XXX". This MY_XXX is defined in libmymib.a and used in
FT> mibgroups/MY_MIB/

There are two possibilities:

1) name mangling. Is the undefined symbol defined as 'extern C'?

2) a link order problem. Try moving the mymib library later or earlier in the
link line.


FT> Will it be a problem to link to a g++ compiled library? When on 4.x
FT> version, it seemed no problem. Now, I am using 5.0.9. If that is the
FT> problem, is there a way to fix it?

No, as long as you are using the g++ linker, too.

--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0