User forums > General (but related to Code::Blocks)

Compiler options being ignored on project build

(1/2) > >>

Greatwolf:
Hi,

I'm noticing something strange. The 'Compile single file to object file' under Advanced compiler options isn't being used by the C::B build system when Borland toolchain is being used. Anyone have any idea why that is? Like for example, I changed 'Compile single file to object file' command line macro to look like this:


--- Code: ---cd
$compiler -q $options $includes -o$object -c $file
--- End code ---

Note that I have Borland 5.5, 5.82 profile selected when doing this.
Then I click Ok and Ok. Now if I build project with this profile those options for compiling isn't being used at all. The link object files seem to be fine though. I've tested other toolchain profiles like Visual C++ 2005/2008 and those profiles don't appear to have that problem.

Thanks

MortenMacFly:

--- Quote from: JMK on August 25, 2010, 01:56:44 am ---cc1.exe: error: unrecognized command line option "-Wfatal-errors"
This leads me to believe codeblocks is ignoring my build settings.

--- End quote ---
Haha... sure things, that's why the compiler called by Code::Blocks complains...?! That doesn't sound very logical to me.

I'd say you should try the compilation at the command line. Then read the documentation of YOUR compiler (no idea which you have because you didn't tell) and decide whether it became deprecated or probably your compiler is too old. Then install a newer / appropriate compiler and you are done.

Keep in mind that C::B is just an IDE and we are supporting the use of literally hundreds of compilers (taking the different versions into account). So please choose the compiler that fit's your needs yourself.

MortenMacFly:

--- Quote from: JMK on August 25, 2010, 08:01:01 am ---So yes, your precious poorly named IDE does have a bug.

--- End quote ---
Look - your are close from being banned from our forums. If you continue to tell lies, don't listen to what we say and don't even try to understand and use your brain it makes no sense to me to allow you posting in our forums. This is nothing else than sarcastic SPAM.

MortenMacFly:

--- Quote from: JMK on August 25, 2010, 08:38:28 am ---What a novel way to deal with bug reports.  I should try this with my customers.

--- End quote ---
Well what a novel what a nice person you are. You made my day today, seriously. Thid is my last talk with you. May others have fun as I had if they want to...

BTW: You do know that your customers pay but you don't, do you?

Jenna:

--- Quote from: JMK on August 25, 2010, 08:01:01 am ---
--- Quote ---whether or not I have the "stop on first error" option enabled

--- End quote ---

I found later there was a setting stored in the project that was listed in a compile block of its own, and was not displayed in any of the targets in the project.  So yes, your precious poorly named IDE does have a bug.

--- End quote ---

If you would seriously try to understand, you would have seen the drop-down-box, that let you decide whether you want to prepend or append the targets build-options to the project options or do not use the project options at all.

And anybody who is able to read, should also be able to understand that there are not just target, but also project options that can be common for all targets.

But this need of course a little bit willingness and the ability to learn and read, but you do not show either the one nor the other.

By the way:
a good start to understand any software, you are not common with, is to read the documentation: http://www.codeblocks.org/user-manual

Navigation

[0] Message Index

[#] Next page

Go to full version