How to configure Codeblocks to compile mysql~

Source: Internet
Author: User

How to configure Codeblocks to compile mysql~Category: Linux mysql2012-09-03 15:51 872 people read reviews (2) favorite reports Mysqlcompilerlinkerincludesearchbuild

Linux, using the Codeblocks, has a variety of code to write the convenience of, but encountered a similar to MySQL files, compile with a link library, etc., feel helpless,

There seems to be no way to compile, originally used codeblocks edit good code, still through the terminal to compile, but after all, is not a way, so, decisive Baidu find ways ...

Here are the solutions that are found to compile MySQL successfully:

Go to Project------> Build Options
a. Compiler Settings tab-------> Other options: Add ' mysql_config--cflags ' (This is not a single quote, but an inverse, a key above the TAB key)
B. linker Settings tab, other options: Add ' mysql_config--libs '
To get codecompletion your probably need to add the include Dir to your project
C. Search Directories tab, compiler: Add/usr/include/mysql

Transferred from: http://blog.csdn.net/wangyawen0305/article/details/7938210

How to configure Codeblocks to compile mysql~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.