[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pnet-developers] Bug in cscc in C mode ?
From: |
Gopal V |
Subject: |
Re: [Pnet-developers] Bug in cscc in C mode ? |
Date: |
Mon, 15 Mar 2004 03:21:43 -0800 (PST) |
The method static variables are treated like global
variables right now ...
So they collide ...
Until rhys brings something like methodname??varname
or other naming convention .. thisll be there :)
Look at the assembly generated ...
Gopal
--- address@hidden <address@hidden> wrote:
> Just tried to compile this :
>
> main(int argc,char *argv[]) {
> static char *f="Hello";
> }
>
> int func(void) {
> static char *f="World";
> }
>
> address@hidden:~/aubit4glsrc/tools/test> cscc test.c
> stdin:27: duplicate definition for `f'
>
>
> If I remove the 'static' before the char *f - it
compiles fine...
> _______________________________________________
> Pnet-developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/pnet-developers
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com