• 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: Looking for a Workaround for GCC Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for a Workaround for GCC Bug


  • Subject: Re: Looking for a Workaround for GCC Bug
  • From: Larry Bright <email@hidden>
  • Date: Fri, 16 Jan 2004 07:58:47 -0800

On Jan 15, 2004, at 10:37 PM, Justin Walker wrote:

On Thursday, January 15, 2004, at 09:58 PM, Larry Bright wrote:

If anyone knows a workaround for the following bug (I have reported it to Apple), I would appreciate knowing about it. I discovered this bug while developing in Xcode, but it seems trace back to the GCC compiler (version 3.3).

I tried this with "gcc -g ctl.m".
The only problem I see is that '_main' and some .objc cruft is undefined. Am I missing something?

Thanks for your prompt response, Justin. You're not getting the same result I got, although it appears that you did the same thing! (Were you using version 3.3, build 1495 of gcc?)


Here's exactly what I did in a Terminal window to get the results I reported in my original post:

[LEBsMacG4Cube:~] larry% mkdir GCCbugTEMP
[LEBsMacG4Cube:~] larry% cd GCCbugTEMP/
[LEBsMacG4Cube:~/GCCbugTEMP] larry% cat > ctl.h
//  -------- Contents of header file ctl.h --------
#import <Cocoa/Cocoa.h>
@interface Ctl : NSObject
{
    IBOutlet NSTextField *a;
    IBOutlet NSQuickDrawView *q;
    IBOutlet NSTextField *xPosText;     // Fails
//  IBOutlet NSTextField *xPosTex;      // Succeeds
}
- (IBAction)ctlMethod:(id)sender;
@end

[LEBsMacG4Cube:~/GCCbugTEMP] larry% cat > ctl.m
//  -------- Contents of source file ctl.m --------
#import "ctl.h"
@implementation Ctl
- (IBAction)ctlMethod:(id)sender
{
}
@end

[LEBsMacG4Cube:~/GCCbugTEMP] larry% which gcc
/usr/bin/gcc
[LEBsMacG4Cube:~/GCCbugTEMP] larry% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
[LEBsMacG4Cube:~/GCCbugTEMP] larry% gcc -c ctl.m -g
/var/tmp//ccUKJNGB.s:42:I need a comma after symbol's name
/var/tmp//ccUKJNGB.s:42:Rest of line ignored. 1st junk character valued 52 (4).
[LEBsMacG4Cube:~/GCCbugTEMP] larry%
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Looking for a Workaround for GCC Bug
      • From: Justin Walker <email@hidden>
References: 
 >Re: Looking for a Workaround for GCC Bug (From: Justin Walker <email@hidden>)

  • Prev by Date: Re: Looking for a Workaround for GCC Bug
  • Next by Date: Re: Looking for a Workaround for GCC Bug
  • Previous by thread: Re: Looking for a Workaround for GCC Bug
  • Next by thread: Re: Looking for a Workaround for GCC Bug
  • Index(es):
    • Date
    • Thread