Menu

#192 OnBA: Duplicate global data label bug

open
nobody
OnBoard Asm (8)
6
2008-04-07
2005-10-31
Anonymous
No

I don't know if this bug is caused by OnBoardC or
OnBoardAsm, but the message pops up from
OnBoardAsm. Here's the problem: I wrote a program
that was something like this:

--File #1.c--
int* X=NULL;

--File #2.c--
extern int* X=NULL;

The code above is not exactly what I had, but similar.
When I tried to compile this, it gave me a "Duplicate
global data label" error. The message popped up after it
to OnBoardAsm, but I don't know if that's where it needs
to be fixed. Now, I was able to find this error in my
program pretty quickly (I mean, it's pretty obvious), but I
wasn't declaring the variable twice. If I didn't know C
very well, or I hadn't used the OnBoard Suite very much,
I may not have caught this very quickly. There should
be a different, easier to understand, error message for
this. Maybe it should be grouped in with a "More
informative error messages" feature request, but this is
one specific one that seemed pretty obvious, so I
thought I'd put it here.

Keep up the good work!

- A Palm and OnBoardC addict

Discussion

  • John Wilund

    John Wilund - 2008-04-07
    • labels: --> OnBoard Asm
    • priority: 5 --> 6
    • summary: Duplicate global data label bug --> OnBA: Duplicate global data label bug
     
  • John Wilund

    John Wilund - 2008-04-07

    Logged In: YES
    user_id=574706
    Originator: NO

    I seccond this and move it to tasks.

     

Log in to post a comment.