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~