bug-glibc
[Top][All Lists]
Advanced

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

Borken includefile


From: Martin Persson
Subject: Borken includefile
Date: Tue, 28 Nov 2000 16:56:11 +0100

I just got a compiler-error when I included regex.h first in a file.
The error I got was:

> cc -lpthread -Wall    InputManager.c   -o InputManager
> In file included from InputManager.c:1:
> /usr/include/regex.h:352: parse error before `size_t'
> /usr/include/regex.h:352: warning: no semicolon at end of struct or union
> /usr/include/regex.h:359: parse error before `:'
> /usr/include/regex.h:368: parse error before `:'
> /usr/include/regex.h:372: parse error before `:'
> /usr/include/regex.h:376: parse error before `:'
> /usr/include/regex.h:380: parse error before `:'
> /usr/include/regex.h:383: parse error before `:'
> /usr/include/regex.h:386: parse error before `:'
> /usr/include/regex.h:450: parse error before `size_t'
> /usr/include/regex.h:521: parse error before `size_t'
> /usr/include/regex.h:524: parse error before `regerror'
> /usr/include/regex.h:525: parse error before `size_t'
> /usr/include/regex.h:525: warning: data definition has no type or storage 
> class
> InputManager.c: In function `read_map':
> InputManager.c:15: storage size of `preg' isn't known
> InputManager.c:15: warning: unused variable `preg'
> make: *** [InputManager] Error 1

If I include stddef.h (or any includefile that includes that file, of
course) before regex.h, it works like a charm.

The version of glibc is glibc-2.1.3-19, an rpm from RedHat, the system
is (mainly) RedHat (with some local changes) and kernelversion is a
(partly patched) 2.2.16.

I'll of course answer if you have further questions.

Regards

Martin Persson
Cendio Systems AB
Linköping, Sweden



reply via email to

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