Re: ZeroLink: unknown symbol '_mysql_init' <-- architecture ppc does not match cputype
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