Use the C language to configure the MySQL database Codeblocks Development Environment

Source: Internet
Author: User
Use the C language to configure the MySQL database Codeblocks Development Environment

Use the C language to configure the MySQL database Codeblocks Development Environment

Compiler path configuration under Codeblocks:

I feel that I can understand the compiler compilation and linking mechanism. I am not sure about it here.

To put it simply, you need to add some options when compiling a program using the command line:

G ++ test. cpp-o test

Here-o is an option, but if the program uses a foreign library, you need to add some other options to specify the path of the Linked Library.

If IDE is used, you do not need to enter the option, but it does not mean that you do not need to specify the option, but everything is graphical. You only need to configure it. Okay. Let's see how codebloc is configured. Of course, this experiment is used as an example.

1. Create a project

2. Configure the compiler and connector path

This search directories is the path of the header file. After adding this path, you can include the header file in the program.

If the header file does not work, add the database to which the connector needs to be connected. Otherwise, the program can only be compiled but cannot be linked, so it cannot generate executable files.

3. Then, there will be no more.

When using a third-party library for development, the configuration of cb is the same.

Code: Blocks detailed introduction: click here
Code: Blocks's: click here

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.