Iphone clang error
<p>I am trying to send and receive message using XMPP framework. I used XMPPStream class for sending and receiving message. My code to receive message is </p>

<pre><code>- (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message {

    NSString *msg = [[message elementForName:@"body"] stringValue];
    NSString *from = [[message attributeForName:@"from"] stringValue];
    NSMutableDictionary *m = [[NSMutableDictionary alloc] init];
    [m setObject:msg forKey:@"msg"];
    [m setObject:from forKey:@"sender"];
    [_messageDelegate newMessageReceived:m]; 
    [m release];

}
</code></pre>

<p>When i build i get a linker error </p>

<pre><code>Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_XMPPStream", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_XMPPPresence", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>

<p>Please guide me to solve this issue.</p>

<p>Thanks in advance.</p>
