• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"jump to label crosses initialization of..."
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"jump to label crosses initialization of..."


  • Subject: "jump to label crosses initialization of..."
  • From: Tim Conkling <email@hidden>
  • Date: Wed, 15 Jun 2005 19:54:11 -0400

I'm moving a C++ (CFM) project over from CodeWarrior 9.5 to Xcode 2.1. gcc is complaining about the following code:

    #ifdef LUA_DEBUG

    if(0 != lua_gettop(L))
        goto HandleErr;

    #endif

    ...
    const DoubleRect& pos = curSprite->getPos();
    ...

    #ifdef LUA_DEBUG

    HandleErr:
    lua_stringerror(L, "GetPosition expects 0 arguments");

    return 0;

    #endif

The error messages (there are three) are:

LuaSpriteInterface.cpp:1205: error: jump to label 'HandleErr'
LuaSpriteInterface.cpp:1186: error: from here
LuaSpriteInterface.cpp:1194: error: crosses initialization of 'const DoubleRect& pos'



Am I doing something non-standard here? How can I fix it? I would like to continue using goto: as this problem occurs in many places in my code.


Thanks,
Tim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: "jump to label crosses initialization of..."
      • From: Clark Cox <email@hidden>
    • Re: "jump to label crosses initialization of..."
      • From: Lawrence Gold <email@hidden>
  • Prev by Date: XCode 2.1: Why is gdb output going to console log, not XCode?
  • Next by Date: Multiple projects - can they share the same project folder?
  • Previous by thread: XCode 2.1: Why is gdb output going to console log, not XCode?
  • Next by thread: Re: "jump to label crosses initialization of..."
  • Index(es):
    • Date
    • Thread