User forums > Using Code::Blocks
warning: overriding commands for target Messages
(1/1)
doscott:
I get these messages for all targets in the project, even when I am compiling only a single file.
Is this a feature or a bug?
wxWindows 2.6.1
Fedora Core 4
CVS Head
sasq:
Seems like a bug for me. I have this problem too, when I try to compile SDL code for multiple targets [Windows and Linux]. I'm forced to switch off all particular CPP files from other targets and switch them on only for the current target, because it doesn't work other way :? It seems like Code::Blocks is trying to compile particular CPP file using all the compilers specified from all the targets selected as owning this file.
Will this bug be fixed in future versions? When? It's very uncomfortable to play with those switches.
killerbot:
please file a bugreport with a detailed description and if possible some example project to reproduce.
sasq:
I don't know how :( I'm doing it now and here.
I've found the following topic better describing the same problem:
http://forums.codeblocks.org/index.php?topic=1002.msg6888#msg6888
I'm using C::B 1.0rc2 on Linux Gentoo.
I have a project with two targets: "default" [for Linux, compile using gcc] and "Win32" [for Windows, compile using "i386-mingw32msvc-gcc" compiler]. When I'm trying to compile "default", Code::Blocks is trying to compile all CPP files using both compilers at once, so it gets conflicts with .o files and the mentioned warnings ["overriding commands ..."]. The proper action should be to compile only using the selected compiler for the selected target, and not both.
mandrav:
--- Quote from: sasq on August 26, 2006, 10:15:49 pm ---Seems like a bug for me.
--- End quote ---
You dug up a one year old thread, in case you didn't notice :).
Just try compiling the SVN version...
Navigation
[0] Message Index
Go to full version