Error compiling C++ programs with ctime
Arjan van Leeuwen
avleeuwen at piwebs.com
Wed Feb 25 16:08:58 PST 2004
I'm suddenly getting errors from a lot of C++ ports. They all look the same
(see the bottom of this email).
Was there a recent change in some includes that triggers this? Or is this
something on my own system, and if so, how do I fix it?
Best regards,
Arjan
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/id3 -I../include
-I/usr/local/include -O -pipe -march=athlon-xp -fmemoize-lookups
-fsave-memoized -Wall -Wno-unused -Wno-inline -Woverloaded-virtual
-Wmissing-declarations -c c_wrapper.cpp -MT c_wrapper.lo -MD -MP
-MF .deps/c_wrapper.TPlo -fPIC -DPIC -o .libs/c_wrapper.lo
cc1plus: warning: "-Wmissing-declarations" is valid for C/ObjC but not for C++
In file included from /usr/include/c++/3.3/cwchar:51,
from /usr/include/c++/3.3/bits/fpos.h:45,
from /usr/include/c++/3.3/iosfwd:49,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/istream:44,
from /usr/include/c++/3.3/fstream:45,
from ../include/id3/id3lib_streams.h:27,
from ../include/id3/utils.h:35,
from ../include/id3/tag.h:34,
from c_wrapper.cpp:30:
/usr/include/c++/3.3/ctime:68: error: `tm' not declared
/usr/include/c++/3.3/ctime:70: error: `clock' not declared
/usr/include/c++/3.3/ctime:71: error: `difftime' not declared
/usr/include/c++/3.3/ctime:72: error: `mktime' not declared
/usr/include/c++/3.3/ctime:73: error: `time' not declared
/usr/include/c++/3.3/ctime:74: error: `asctime' not declared
/usr/include/c++/3.3/ctime:75: error: `ctime' not declared
/usr/include/c++/3.3/ctime:76: error: `gmtime' not declared
/usr/include/c++/3.3/ctime:77: error: `localtime' not declared
/usr/include/c++/3.3/ctime:78: error: `strftime' not declared
*** Error code 1
Stop in /usr/ports/audio/id3lib/work/id3lib-3.8.3/src.
*** Error code 1
Stop in /usr/ports/audio/id3lib/work/id3lib-3.8.3.
*** Error code 1
Stop in /usr/ports/audio/id3lib/work/id3lib-3.8.3.
*** Error code 1
Stop in /usr/ports/audio/id3lib.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040226/a1b6fc15/attachment.bin
More information about the freebsd-current
mailing list