[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(mgp-users 00339) Re: Compilation problem on DEC alpha
- To: mgp-users@mew.org
- Subject: (mgp-users 00339) Re: Compilation problem on DEC alpha
- From: Ivan Laurette <Ivan.Laurette@unice.fr>
- Date: Fri, 30 Jun 2000 00:48:44 +0900
- In-reply-to: <>
- Posted: Thu, 29 Jun 2000 17:59:29 +0100 (GMT+0100)
- References: <> <>
- Reply-to: Ivan Laurette <Ivan.Laurette@unice.fr>
Hi,
Thanks for the answer.
>>>>> " " == itojun <itojun@itojun.org> writes:
>
>> I have some problems compiling MagicPoint on a DEC alpha
>> (OSF1 V4.0 878 alpha). Here is the beginning of the errors I
>> get:
> it looks that your compiler does not support "inline".
> remove the word "inline" from scanner.l (two locations).
> we'll try to make this portability issue better.
Now, I have the following errors:
------------------------------------------
cc -c -O2 -std1 -I/usr/include -DLONG_BIT=64 -DNO_MESSAGE_CATALOG -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LOCALE_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_POLL=1 -DHAVE_STRSTR=1 -DHAVE_USLEEP=1 -DHAVE_STRDUP=1 -DHAVE_MKSTEMP=1 -DHAVE_MEMCMP=1 -DMGPLIBDIR=\"/usr/lib/X11/mgp\" -DUUDECODE=\" scanner.c
cc: Error: ./scanner.l, line 197: Invalid declarator.
yywrap()
^
cc: Error: ./scanner.l, line 228: Declaration has no type or storage class.
sign = 1;
----------------^
cc: Error: ./scanner.l, line 229: Invalid declarator.
if (*s == '0') {
--------^
cc: Error: ./scanner.l, line 238: Invalid declarator.
} else if (*s == '-') {
----------^
cc: Error: ./scanner.l, line 242: Invalid declarator.
while (*s)
--------^
cc: Error: ./scanner.l, line 61: The function "stoi" has internal linkage, occurs in a context that requires its definition, and has no definition.
static int stoi __P((char *));
------------------------------------------