News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Convert compile command to build options?

Started by Newbie0815, April 13, 2011, 12:54:19 PM

Previous topic - Next topic

Newbie0815

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?

oBFusCATed

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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Newbie0815

WOW, ultra fast, short and precise, thank you.