å¨ 2012å¹´11æ28æ¥ææä¸UTC+8ä¸å8æ¶22å30ç§ï¼Bence
Fábiánåéï¼
> but what is _most_ likely is that you really have them initialized two times.
> just do
> g '(op|et)names ?='
>
> you should find 4 initializations. just delete the redundant ones.
>
>
> 2012/11/28 Bence Fábiá
å¨ 2012å¹´11æ28æ¥ææä¸UTC+8ä¸å8æ¶48å09ç§ï¼erik
quanstromåéï¼
> you're right. a quick trip through sort|uniq -d says that FALL is listed
>
> twice.
>
>
>
> - erik
Thank you erik and Bence, it's a good lesson to learn.
å¨ 2012å¹´11æ28æ¥ææä¸UTC+8ä¸å8æ¶48å09ç§ï¼erik
quanstromåéï¼
> you're right. a quick trip through sort|uniq -d says that FALL is listed
>
> twice.
>
>
>
> - erik
Thank you erik, it's a good lesson.
you're right. a quick trip through sort|uniq -d says that FALL is listed
twice.
- erik
but what is _most_ likely is that you really have them initialized two
times.
just do
g '(op|et)names ?='
you should find 4 initializations. just delete the redundant ones.
2012/11/28 Bence Fábián
> DATA opnames<1>+116(SB)/4,$string<1>+739(SB)
> and
> DATA etnames<1)+72(SB)/4,$string<1>+912(SB
DATA opnames<1>+116(SB)/4,$string<1>+739(SB)
and
DATA etnames<1)+72(SB)/4,$string<1>+912(SB)
are the second initializations of both opnames and etnames.
you can grep for them in the output of
8c -S source.c
that's all i can help, cause i can't tell what $string<1>+739(SB)
and $string<1>+912(SB)
> int num = 20;
> int num = 30;
Looks easy to fix, but I understand where you're coming from. What
stops you from using a workaround?
++L
This is a multiple initialization problem. Here is an example code:
#include
#include
int num = 20;
int num = 30;
void
main(void)
{
print("%d\n", num);
exits(nil);
}
relevant parts:
/sys/src/cmd/8l/asm.c:424:
/sys/src/cmd/8l/pass.c:16:
2012/11/28 keystroke
> Thank you for your reply, er
Thank you for your reply, erik.
But I don't quite follow you. Are you suggesting that the error has nothing to
do with "opnames" and "etnames", but is about the following word "memccpy"?
I had grep opnames and etnames before, and finds only one initial place.
And I grep memccpy, no result was f
On Mon Nov 26 04:56:23 EST 2012, zhangrui0...@gmail.com wrote:
> The message is:
>
> (2050) DATA opnames<1>+116(SB)/4,$string<1>+739(SB)
> memccpy: multiple initialization
> (2170) DATA etnames<1)+72(SB)/4,$string<1>+912(SB)
> memccpy: multiple initialization
>
> I know 2050 is somehow related
The message is:
(2050) DATA opnames<1>+116(SB)/4,$string<1>+739(SB)
memccpy: multiple initialization
(2170) DATA etnames<1)+72(SB)/4,$string<1>+912(SB)
memccpy: multiple initialization
I know 2050 is somehow related to the line number where opnames appear in the
code, and so is 2170 with etnam
11 matches
Mail list logo