bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

process.cpp:204: implicit declaration of function `int ost::snprintf(...


From: Arthur Kantor
Subject: process.cpp:204: implicit declaration of function `int ost::snprintf(...)'
Date: Wed, 30 Oct 2002 18:23:11 -0600

compiling with 
gcc 2.95.3 
on 
SunOS csil-suna33.cs.uiuc.edu 5.8 Generic_108528-16 sun4u 
sparc SUNW,Sun-Blade-1000


the error:
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -
DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -
I/usr/dcs/software/supported/encap/libxml2-
2.4.21/include/libxml2 -I../include -c exception.cpp -o 
exception.o >/dev/null 2>&1
mv -f .libs/exception.lo exception.lo
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -
I. -I../include     -I../src -DCCXX_EXPORT_LIBRARY  -g -O2 -
D_GNU_SOURCE -D_REENTRANT  -
I/usr/dcs/software/supported/encap/libxml2-
2.4.21/include/libxml2 -I../include -c process.cpp
rm -f .libs/process.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -
DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -
I/usr/dcs/software/supported/encap/libxml2-
2.4.21/include/libxml2 -I../include -c process.cpp  -fPIC -
DPIC -o .libs/process.lo
In file included from /usr/include/fcntl.h:18,
                 from ../include/cc++/config.h:343,
                 from process.cpp:41:
/usr/include/sys/feature_tests.h:143: warning: 
`_POSIX_PTHREAD_SEMANTICS' redefined
../include/cc++/config.h:305: warning: this is the location 
of the previous definition
process.cpp: In function `static void ost::Process::setEnv
(const char *, const char *, bool)':
process.cpp:204: implicit declaration of function `int 
ost::snprintf(...)'
*** Error code 1
make: Fatal error: Command failed for target `process.lo'
Current working 
directory /home/student/akantor/cs338/p2/commoncpp2-1.0.5/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'


you probably want to 
#include <stdio.h>
when compiling for sun.

cheers,
-Arthur




reply via email to

[Prev in Thread] Current Thread [Next in Thread]