Error compiling C++ programs with ctime

From: Arjan van Leeuwen <avleeuwen_at_piwebs.com>
Date: Thu, 26 Feb 2004 01:09:41 +0100
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.

Received on Wed Feb 25 2004 - 15:08:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:44 UTC