This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
sys/time.h C++ compilation problem
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: sys/time.h C++ compilation problem
- From: MATSUMURA Hiromitsu <coji2 at mb dot infoweb dot ne dot jp>
- Date: Sun, 03 Sep 2000 04:14:10 +0900
>Submitter-Id: net
>Originator: MATSUMURA Hiromitsu
>Organization:
>Confidential: no
>Synopsis: sys/time.h C++ compilation problem
>Severity: non-critical
>Priority: low
>Category: libc
>Class: sw-bug
>Release: libc-2.1.93
>Environment:
machine: PentiumIII 800MHz dual
os: Linux 2.4.0-test7
compiler:gcc-2.95.2
Host type: i686-pc-linux-gnu
System: Linux balthasar 2.4.0-test7 #4 SMP Sun Sep 2 01:33:34 JST 2000 i686 unknown
Architecture: i686
Addons: linuxthreads
Build CFLAGS: -O2
Build CC: gcc
Compiler version: 2.95.2 19991024 (release)
Kernel headers: 2.4.0-test7
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio
>Description:
When I complied the C++ program that includes sys/time.h,
following error message was printed.
/usr/include/sys/time.h:69: two or more data types in declaration of `__tz'
>How-To-Repeat:
compile the following source code by c++.
#include <sys/time.h>
int main()
{
return 0;
}
--
MATSUMURA Hiromitsu