Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to link shared library?



Just add the library you want to link against to your target.

Scott

On Jan 3, 2004, at 10:48 AM, Bill So wrote:

> Dear All,
>
> I'm new to Xcode.
>
> I am writing an application using MySQL C API and need to link MySQL
> client library as a shared library.
>
> In gcc, I compile my test code using the following command:
>
> gcc -o mysqldemo mysqldemo.c -I/usr/include/mysql -L/usr/lib/mysql
> -lmysqlclient
>
> However, I don't know how to set the -lmysqlclient parameter in Xcode.
>
> Can you tell me how to?
>
> Thank you very much for your help.
>
> Happy New Year
>
> Yours,
> Bill
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives: 
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >how to link shared library? (From: Bill So <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.