• 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: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype


  • Subject: Re: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Fri, 16 Jun 2006 16:17:35 -0700

1) gcc via command prompt works;
2) via Xcode does NOT.  Doesn't understand '_mysql_int'.

I got the following build error within Xcode 2.3 for a simple .c file:

[Session started at 2006-06-16 14:49:38 -0700.]
ZeroLink: unknown symbol '_mysql_init'

mySQL has exited due to signal 6 (SIGABRT).

Why does ZeroLink doesn't know about '_mysql_int'?
I believe I'm using the correct Xcode parameters based on the gcc command version.


Is there a particular Xcode parameter that I'm should (or should not) select?

Regards,

Ric.

I've apparently isolated the problem, it has something to do with the cputype.


The Debug version builds okay; but the release version fails to build.
Is there a remedy here?

Following is part of the compiler error:

Building target “mySQL” of project “mySQL” with configuration “Release” — (1 error, 7 warnings)
Checking Dependencies cd /Users/Ric/mySQL


/usr/bin/ld: warning /usr/local/mysql/lib/libmysqlclient.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)

/usr/bin/ld: Undefined symbols:
_mysql_close
_mysql_init
/Users/Ric/workarea/tmp/XCode Builds/mySQL.build/Release/ mySQL.build/Objects-normal/i386/main.o reference to undefined _mysql_close
/Users/Ric/workarea/tmp/XCode Builds/mySQL.build/Release/ mySQL.build/Objects-normal/i386/main.o reference to undefined _mysql_init
collect2: ld returned 1 exit status
Build failed (1 error, 7 warnings) _______________________________________________
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
  • Follow-Ups:
    • Re: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype
      • From: David Dunham <email@hidden>
  • Prev by Date: ZeroLink: unknown symbol '_mysql_init'
  • Next by Date: Re: Xcode-users Digest, Vol 3, Issue 428
  • Previous by thread: ZeroLink: unknown symbol '_mysql_init'
  • Next by thread: Re: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype
  • Index(es):
    • Date
    • Thread