Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Newbie0815 on April 13, 2011, 12:54:19 pm
-
I´m frequently finding tutorials where they compile at the command line, i.e. for a simple MySQL connection, like here:
http://iitdu.forumsmotion.com/t1544-connect-with-mysql-using-c-in-ubuntu
gcc -o output-file $(mysql_config --cflags) input-file.c $(mysql_config --libs)
I´d love to know, how to put those options into a C::B project under build options?
-
Hm, pretty strange way to use backticks `` :)
To convert it to C::B
1. project -> build options -> compiler -> other -> `mysql_config --cflags`
2. project -> build options -> other -> `mysql_config --libs`
Also read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
-
WOW, ultra fast, short and precise, thank you.