Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error when compiling on windows

54 views
Skip to first unread message

Oren

unread,
Jul 6, 2009, 1:05:44 AM7/6/09
to
Hi,

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

ArarghMai...@not.at.arargh.com

unread,
Jul 6, 2009, 1:22:03 AM7/6/09
to
On Sun, 5 Jul 2009 22:05:44 -0700 (PDT), Oren <oren....@gmail.com>
wrote:

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.

Oren

unread,
Jul 6, 2009, 1:40:36 AM7/6/09
to
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>

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

ArarghMai...@not.at.arargh.com

unread,
Jul 6, 2009, 4:45:21 PM7/6/09
to
On Sun, 5 Jul 2009 22:40:36 -0700 (PDT), Oren <oren....@gmail.com>
wrote:

>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.

DavidTaylor

unread,
Jul 16, 2009, 11:36:02 PM7/16/09
to

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.

0 new messages