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