Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jeffrodrigo on July 05, 2010, 07:53:29 pm

Title: How do I see what C::B executes in command line?
Post by: jeffrodrigo on July 05, 2010, 07:53:29 pm
Hello there!

Is there any way to see the how do C::B compiles my code?
There is one parameter that I don't know how to pass to gcc C compiler trhoug the command line (directly).

thnks
Title: Re: How do I see what C::B executes in command line?
Post by: Jenna on July 05, 2010, 08:34:23 pm
Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline"
Title: Re: How do I see what C::B executes in command line?
Post by: nanyu on July 05, 2010, 09:42:43 pm
Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline"

Can we have a context menu that help us  switch this setting when code is compiling?
I like the simple log while everything ok, but have to switch to "Full comandline" while got some error.....

sorry for my english.
Title: Re: How do I see what C::B executes in command line?
Post by: jeffrodrigo on July 07, 2010, 07:38:19 pm
Thanks for the answer! :)
Title: Re: How do I see what C::B executes in command line?
Post by: jeffrodrigo on July 13, 2010, 06:24:49 pm
nanyu,

The command line arguments are aways the same at the same project (but if you change arguments options).

When you get some errors, you'll probably find'em at your source code, not at the command line arguments for gcc compiler.

So, if everything is all right, compilation will succeed, and you'll have the full command line options and it will alays be the same.
If compilation don't succeed, you must look at your code.
So, anyway, in your case, you don't need to look at the command line arguments.

[]'s