Main Page | Report this Page
Computers Forum Index  »  Computer Compilers - LCC  »  Error when compiling on windows...
Page 1 of 1    

Error when compiling on windows...

Author Message
Oren...
Posted: Mon Jul 06, 2009 5:05 am
Guest
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
 
Oren...
Posted: Mon Jul 06, 2009 5:40 am
Guest
On Jul 6, 2:22 am, ArarghMail907NOS... at (no spam) NOT.AT.Arargh.com wrote:
Quote:
On Sun, 5 Jul 2009 22:05:44 -0700 (PDT), Oren <oren.al... at (no spam) 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  :-)

--
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
 
...
Posted: Mon Jul 06, 2009 9:22 am
Guest
On Sun, 5 Jul 2009 22:05:44 -0700 (PDT), Oren <oren.almog at (no spam) gmail.com>
wrote:

Quote:
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 :-)

--
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.
 
...
Posted: Tue Jul 07, 2009 12:45 am
Guest
On Sun, 5 Jul 2009 22:40:36 -0700 (PDT), Oren <oren.almog at (no spam) gmail.com>
wrote:

Quote:
On Jul 6, 2:22 am, ArarghMail907NOS... at (no spam) NOT.AT.Arargh.com wrote:
On Sun, 5 Jul 2009 22:05:44 -0700 (PDT), Oren <oren.al... at (no spam) 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  Smile

LCC 4.2 ?

Using a microsoft compiler?

'outp' is a function in that case from the ms library.

--
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.
 
DavidTaylor...
Posted: Fri Jul 17, 2009 3:36 am
Guest
On Jul 6, 3:05 pm, Oren <oren.al... at (no spam) gmail.com> wrote:
Quote:
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

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.
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 01, 2009 11:48 pm