I am following the instructions but I keep getting this error:
cl -nologo -DWIN32 -Zi -MLd -Fd\src\llc2\builddir\ -c -Icpp -Fo\src
\llc2\builddir\cpp.obj cpp/cpp.c
cpp.c
e:\src\llc2\cpp\cpp.h(145) : error C2365: 'outp' : redefinition;
previous definition was 'function'
cpp/cpp.c(10) : error C2365: 'outp' : redefinition; previous
definition was 'function'
cpp/cpp.c(53) : warning C4047: '=' : 'int (__cdecl *)()' differs in
levels of indirection from 'char *'
cpp/cpp.c(53) : error C2106: '=' : left operand must be l-value
cpp/cpp.c(53) : warning C4550: expression evaluates to a function
which is missing an argument list
Any ideas?
Thanks
Oren
If I were guessing, (and I am), I would say you tried to define a
variable named 'outp', which appears to already a function.
Might post some source :-)
--
ArarghMail907 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
To reply by email, remove the extra stuff from the reply address.
I probably should have phrased my subject differently. I am trying to
compile LCC itself from source. Not my code. I haven't made any
changes to the source code.
Oren
>On Jul 6, 2:22�am, ArarghMail907NOS...@NOT.AT.Arargh.com wrote:
>> On Sun, 5 Jul 2009 22:05:44 -0700 (PDT), Oren <oren.al...@gmail.com>
>> wrote:
>>
>> >I am following the instructions but I keep getting this error:
>>
>> > � �cl -nologo -DWIN32 -Zi -MLd -Fd\src\llc2\builddir\ -c -Icpp -Fo\src
>> >\llc2\builddir\cpp.obj cpp/cpp.c
>> >cpp.c
>> >e:\src\llc2\cpp\cpp.h(145) : error C2365: 'outp' : redefinition;
>> >previous definition was 'function'
>> >cpp/cpp.c(10) : error C2365: 'outp' : redefinition; previous
>> >definition was 'function'
>> >cpp/cpp.c(53) : warning C4047: '=' : 'int (__cdecl *)()' differs in
>> >levels of indirection from 'char *'
>> >cpp/cpp.c(53) : error C2106: '=' : left operand must be l-value
>> >cpp/cpp.c(53) : warning C4550: expression evaluates to a function
>> >which is missing an argument list
>>
>> If I were guessing, (and I am), I would say you tried to define a
>> variable named 'outp', which appears to already a function.
>>
>> Might post some source �:-)
LCC 4.2 ?
Using a microsoft compiler?
'outp' is a function in that case from the ms library.
I got that too. I replaced all instances of "outp" in the files in the
cpp directory with "xoutp". That fixed it. I'm getting problems
running the tests now, still looking into them.
Regards,
David.