MCPKit Connection Problem
Hi, all! I'm using this code in conjunction with the MCPKit framework:
db = [[MCPConnection alloc] initToHost:@"host" withLogin:@"username" usingPort:3306];
[db setPassword:@"password"];
NSLog(@"Connect: %d", [db connect]);
BOOL connSuccessful = [db connect];
if (!connSuccessful) {
NSLog(@"%@",[db getLastErrorMessage]);
}
else {
BOOL selectDBSuccessful = [db selectDB:@"database"];
if (!selectDBSuccessful) {
NSLog(@"%@",[theConn getLastErrorMessage]);
}
else {
// MySQL Stuff Here
}
}
Whenever I build the application I get this error:
Undefined symbols for architecture i386:
“_OBJC_CLASS_$_MCPConnection”, referenced from:
objc-class-ref in AppDelegate_iPhone.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status.
What would be a possible solution to this? Thanks in advance!
|