• 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: XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled


  • Subject: Re: XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled
  • From: "Sebastian Pape" <email@hidden>
  • Date: Tue, 4 Nov 2008 09:01:17 +0100

Problem solved!

I used the old PPC version of the Framework on my Mac. After
downloading a recompiled version (for Intel) and replacing the PPC
version with the new one in my project the Application builds without
problems.

Thanks,
Sebastian.

2008/11/4 Sebastian Pape <email@hidden>:
> Hi,
>
> I am trying to get CocoaMySQL running in my XCode. So I created an
> easy application to query my database. In the Controller.m file I
> added the line:
>
>
> #import <MCPKit_bundled/MCPKit_bundled.h>
>
>
> CODE:
> ______________________________________
>
>        MCPConnection * mySQLConnection = [[MCPConnection alloc]
> initToHost:@"localhost" withLogin:@"root" password:@"password"
> usingPort:3306];
>        MCPResult * mySQLResult;
>
>
>        if ([mySQLConnection isConnected]) {
>                if([mySQLConnection selectDB:@"myDBName"]) {
>                        mySQLResult = [mySQLConnection queryString:@"INSERT INTO 'mytable'
> VALUES (1,'FOO')"];
>                } else {
>                        NSLog(@"Could not select DB");
>                }
>        } else {
>                NSLog(@"Could not establish connection");
>        }
>
> ______________________________________
>
> This code won't compile and give me the error:
>
> Linking /Users/developer/Desktop/Projects/Test/Debug/Test.app/Contents/MacOS/Test
> (1 error)
> ".objc_class_name_MCPConnection", referenced from:
> literal pointer@_OBJC@_cls_refs@MCPConnection in Controller.o
> symbol(s) not found
> collect2: Idreturned 1 exit status
> Build failed (1 error)
>
> I had a similar error once when using the AddressBook Framework and
> was able to resolve that by myself, but I don't remember how. Could
> you please give me a hint what I'm doing wrong.
>
> Thankyou,
> Sebastian.
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled (From: "Sebastian Pape" <email@hidden>)

  • Prev by Date: XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled
  • Next by Date: Underlining text in Interface Builder
  • Previous by thread: XCode won't build - Error while Linking CocoaMySQL MCPKit_bundled
  • Next by thread: Underlining text in Interface Builder
  • Index(es):
    • Date
    • Thread