• 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
Re: Globals variable problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Globals variable problem


  • Subject: Re: Globals variable problem
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 26 Jul 2008 10:21:06 -0700

On Jul 26, 2008, at 10:18 AM, Michael wrote:
On Jul 26, 2008, at 9:38 AM, Michael wrote:
The following code works as expected, with the 2 globals showing up as expected.

#include <stdio.h>

#define MAXPTRS 20

int thisisatest;           <<<<<<<<<<<  seen in the globals browser as expected, check box available, once checked, seen under "globals" in the debugger
char *lineptrs[MAXPTRS];  <<<<<<<<<<<<   ditto.

int main (int argc, const char * argv[]) {
    // insert code here...
    printf("Hello, World!\n");
    return 0;
}


Anyone make any sense of this?

After playing around a while, it seems that if "lineptrs" is declared BEFORE the include file is added to the project, lineptrs is visible in the globals browser as expected. Not sure what this means.

Welcome to programming C.   Things are not always as they seem.

This seems like a bug in the debugging tools.    I would encourage you to file a bug via http://bugreprter.apple.com/.

thanks,
b.bum

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Globals variable problem (From: Michael <email@hidden>)
 >Re: Globals variable problem (From: Michael <email@hidden>)
 >Re: Globals variable problem (From: Michael <email@hidden>)

  • Prev by Date: Re: Globals variable problem
  • Next by Date: Static library linking in the face of system dynamic libraries
  • Previous by thread: Re: Globals variable problem
  • Next by thread: Re: Globals variable problem
  • Index(es):
    • Date
    • Thread