Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 01:09:41 +0100
From:      Arjan van Leeuwen <avleeuwen@piwebs.com>
To:        freebsd-current@freebsd.org
Subject:   Error compiling C++ programs with ctime
Message-ID:  <200402260109.44508.avleeuwen@piwebs.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAPTlI3Ym57eNCXiERAn71AJsFlmAPC6kH+Ji1d3JwqlO2F+6n5wCfaCcQ
jiicd1X9/VuD+2ytjew9hTY=
=P+tw
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402260109.44508.avleeuwen>