Compilation error

Alex Finogenov afinogenov____malibunet.com
Thu Aug 23 23:20:14 CEST 2001


Amit,
 
Try to define __EXTENSIONS__, __REENTRANT, or both when you compile this
and other (just in case) files. This should make the compile to include
a proper  ANSI C declaration of strtok_r() located in <string.h>
(/usr/include/string.h). Make sure that <string.h> is included.
 
Alex

-----Original Message-----
From: Amit Tropper [mailto:atropper____cisco.com]
Sent: Thursday, August 23, 2001 2:02 PM
To: agentpp-dl____agentpp.com
Subject: Compilation error


Hi 
I would like to ask your help regarding SNMP++ compiling,
i am getting the following error:
 
address.cpp: In method `int IpAddress::parse_dotted_ipstring(const char
*)':
address.cpp:446: implicit declaration of function `int strtok_r(...)'
address.cpp:446: assignment to `char *' from `int' lacks a cast
address.cpp:471: assignment to `char *' from `int' lacks a cast

 
i am running under Solaris 8 using gcc version 2.95.2.
 
Thanks,
Amit.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20010823/8c66e52f/attachment.htm 


More information about the AGENTPP mailing list