Re: I'm quite confused...
Re: I'm quite confused...
- Subject: Re: I'm quite confused...
- From: Adam <email@hidden>
- Date: Fri, 21 Sep 2007 22:18:45 -0700
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
On Sep 21, 2007, at 9:59 PM, Chris Espinosa wrote:
On Sep 21, 2007, at 9:53 PM, Adam wrote: Declared but not defined? The first and last ones are classes, and the middle one is an int array. Hmm... I declared them all and then I almost immediately define them. : (
I added the flag to "Other Linker Flags" and it didn't do anything AFAIK. : (
I haven't added or removed any files since I successfully built this last.
You're going to have to show us some source code, I'm afraid. The linker disagrees with you, and without seeing what the compiler has been given it's hard to know why.
Chris
//inside my header file
class c_piece { public:
//Declarations (aka int x;) c_piece() { //Definitions (aka x = 0;) } };
extern c_piece curr_piece; extern c_piece next_piece;
extern int arr_tetris_screen[SCREENW] [SCREENH + 1];
//Later on... void restart() { for (int i = 0; i < SCREENW; i++) { for (int j = 0; j < SCREENH + 1; j++) { arr_tetris_screen [i] [j] = NO_TILE; } } }
How is that not defining it?
All help is appreciated and thanks in advance.
~ < [ / Adam-o \ ] > ~
Mac OS 10.4.10 Powerbook G4
|
_______________________________________________
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