Hi, If you want to use external libraries or external header files, best place to add them is passing them to the configure script. You can use --with-cflags and --with-ld-flags options of the configure for passing them. So it will look like - configure --with-cflags="-I<myIncludeDir>" --with-ld-flags="-L <myLibraryDir> -l<myLibrary>"
See configure --help for more details. Also you will be required to compile in the new module you have generated using the mib2c, by passing it to the --with-mib-modules directive. Thanks, Ujjwal http://ujjwal.talk.to On Fri, 2004-07-16 at 19:28, [EMAIL PROTECTED] wrote: > > > Hello UCD users, > > > > I'm trying to extend my ucd-snmp agent with a private extension. > > Within this extension, I want to use an external library, which is > part of the SDK of another product. > > > > When I write a simple C program, I link this library directly in gcc > syntax like this: > > > > /usr/bin/gcc -I <myIncludeDir> -L <myLibraryDir> -l<myLibrary> try.cpp > > > > When I put the same piece of code in the c file generated by mib2c, I > keep getting an error about the library. > > Can someone provide a howto on that subject? > > > > I hope the question has not been treated several times, and apologize > if so. > > > > > > > > Regards > > > > ______________________________________________________ > Steven Haddad - Ascential Software Europe de l'Ouest > Avant-Vente > ( Direct : 01 46 96 37 74 > ( Mobile : 06 75 24 26 80 > 1 Fax : 01 46 96 37 38 > * mailto:[EMAIL PROTECTED] > ______________________________________________________ > > Ascential Software > Tour AREVA, 1, place de la Coupole > 92084 Paris la D�fense Cedex > Std: 01 46 96 37 37 > Site Web <http://www.ascential.fr/> ou > <http://www.ascentialsoftware.com/> > > > > > > > > > > > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ 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
