Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
XCode - C - GCC options
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="federicog" data-source="post: 465769" data-attributes="member: 23574"><p><strong>XCode - C - MySQL - GCC options</strong></p><p></p><p>I'm using XCode to create a Command line C App.</p><p>I want to use MySQL, so I need to pass certain parameters to gcc (<a href="http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html" target="_blank">http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html</a>)</p><p></p><p>How should I setup XCode to pass those parameters to gcc?</p><p></p><p>I tried compiling an example by hand (<a href="http://dev.mysql.com/doc/refman/5.0/en/building-clients.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/building-clients.html</a>) and when I execute it, it returns "Segmentation Fault".</p><p></p><p>EDIT: I fixed, it works when I compile it manually. The thing is configuring XCode to add parameters to gcc automatically.</p><p></p><p>Thanks!</p></blockquote><p></p>
[QUOTE="federicog, post: 465769, member: 23574"] [b]XCode - C - MySQL - GCC options[/b] I'm using XCode to create a Command line C App. I want to use MySQL, so I need to pass certain parameters to gcc ([url]http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html[/url]) How should I setup XCode to pass those parameters to gcc? I tried compiling an example by hand ([url]http://dev.mysql.com/doc/refman/5.0/en/building-clients.html[/url]) and when I execute it, it returns "Segmentation Fault". EDIT: I fixed, it works when I compile it manually. The thing is configuring XCode to add parameters to gcc automatically. Thanks! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
XCode - C - GCC options
Top