|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Max Khon 2:5000/79 17 Sep 2000 20:26:36 To : rnd@rnd.donetsk.ua Subject : regex.h в FreeBSD 3.4S -------------------------------------------------------------------------------- 16 Sep 00 23:32, rnd@rnd.donetsk.ua wrote to All: >>> ~$ cat test.c r> #include <regex.h> r> void main() {}; >>> ~$ gcc test.c r> In file included from test.c:1: r> /usr/include/regex.h:46: parse error before `regoff_t' r> /usr/include/regex.h:46: warning: data definition has no type or r> storage class r> /usr/include/regex.h:50: parse error before `size_t' r> /usr/include/regex.h:50: warning: no semicolon at end of struct or r> union r> /usr/include/regex.h:53: parse error before `}' r> /usr/include/regex.h:53: warning: data definition has no type or r> storage class r> /usr/include/regex.h:56: parse error before `regoff_t' r> /usr/include/regex.h:56: warning: no semicolon at end of struct or r> union r> /usr/include/regex.h:57: warning: data definition has no type or r> storage class r> /usr/include/regex.h:58: warning: data definition has no type or r> storage class r> /usr/include/regex.h:99: parse error before `*' r> /usr/include/regex.h:100: parse error before `regerror' r> /usr/include/regex.h:100: parse error before `*' r> /usr/include/regex.h:100: warning: data definition has no type or r> storage class r> /usr/include/regex.h:101: parse error before `*' r> /usr/include/regex.h:103: parse error before `*' [snip] r> Hичего не понимаю. Файл /usr/include/regex.h, насколько я могу судить, r> абсолютно нормальный и ничем не отличается от своего оригинала из r> дерева исходников ОС. Куда копать? #include <sys/types.h> перед #include <regex.h> поставь. man 3 regex /fjoe --- Msged/BSD TE 06 (pre) * Origin: the number of the beast is vi vi vi (2:5000/79@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/1216839c53488.html, оценка из 5, голосов 10
|