I have declared a constant header file : "Constants.h". It contains the declarations below:
extern const NSString *Const_alertPayantMessage = @"test";
extern const NSString *Const_alertPayantTitle = @"Wooooops!!!";
extern const int *Const_statutPayant = 1;
And I used this constants in this way:
int x = 1;
if (x == Const_statutPayant) {
UIAlertView* mes=[[UIAlertView alloc] initWithTitle:Const_alertPayantTitle
message:Const_alertPayantMessage delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[mes show];
[avPlayerError play];
}else{
[avPlayer play];
Unfortunately, I can not run my application because I have this error message:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Have you got any idea?