[ooc-compiler] Am I having a senior moment, or have I found a problem?
Brought to you by:
mva
|
From: Fitzpatrick, Patrick-p. <Pat...@gd...> - 2007-10-26 20:48:09
|
I am trying to build some code I have on other machines and it won't
build on this one.
If you need any more info, please let me know.
Thx,
Fitz
OO2C Version:
[p98785@des152 ~/src/o2/Libs/Utils 123]> oo2c --version
oo2c/gcc 2.1.11
GCC Version:
[p98785@des152 ~/src/o2/Libs/Utils 122]> gcc --version
2.8.1
System Info:
[p98785@des152 ~/src/o2/Libs/Utils 121]> uname -a
SunOS des152 5.10 Generic_125100-05 sun4u sparc SUNW,Sun-Blade-100
Error generated:
oo2c --build-package Utils
obj/Utils.c: In function `Utils__AsciiStr2Number':
obj/Utils.c:123: parse error before `NOPARAMS'
obj/Utils.c:124: parse error before `NOPARAMS'
obj/Utils.c:194: parse error before `NOPARAMS'
obj/Utils.c:195: parse error before `NOPARAMS'
make: *** [Debug] Error 1
Generated C code:
OOC_INT32 Utils__AsciiStr2Number(const OOC_CHAR8 STR__ref[], OOC_LEN
STR_0d) {
register OOC_INT32 i0,i1,i2;
OOC_ALLOCATE_VPAR(STR,OOC_CHAR8 ,STR_0d)
OOC_INITIALIZE_VPAR(STR__ref,STR,OOC_CHAR8 ,STR_0d)
i0 =3D (OOC_INT32)(__FUNCTION__)NOPARAMS();
i1 =3D (OOC_INT32)(__FILE__)NOPARAMS();
Debug__Entry((RT0__Name)i1, (RT0__Name)i0);
Debug__Inc();
Debug__Debug();
Debug__Label((OOC_CHAR8*)"STR before Capilatize is run", 29);
Debug__QString((void*)(OOC_INT32)STR, STR_0d);
Debug__Nl();
Strings__Capitalize((void*)(OOC_INT32)STR, STR_0d);
Debug__Debug();
Oberon Source:
PROCEDURE AsciiStr2Number*( STR: ARRAY OF CHAR ): LONGINT;
VAR
DBG: BOOLEAN;
NUM: LONGINT;
len: INTEGER;
BEGIN
DBG :=3D FALSE;
DBG :=3D TRUE;
IF DBG THEN
Debug.Entry( This.File(), This.Func() );
(* Debug.Entry( "Utils.AsciiStr2Number" ); *)
END;
Debug.Inc;
(* Capitalize all chars in the string *)
IF DBG THEN
Debug.Debug;
Fitz
Rational Support Team
(480) 441-1805
> "This email message is for the sole use of the intended
> recipient(s) and may contain GDC4S confidential or privileged
> information. Any unauthorized review, use, disclosure or distribution
> is prohibited. If you are not an intended recipient, please contact
> the sender by reply email and destroy all copies of the original
> message."
>=20
>=20
|