Author Topic: warning: overriding commands for target Messages  (Read 7100 times)

doscott

  • Guest
warning: overriding commands for target Messages
« on: September 17, 2005, 11:50:55 pm »
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

Offline sasq

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: warning: overriding commands for target Messages
« Reply #1 on: August 26, 2006, 10:15:49 pm »
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.
« Last Edit: August 26, 2006, 10:18:55 pm by sasq »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: warning: overriding commands for target Messages
« Reply #2 on: August 26, 2006, 10:18:49 pm »
please file a bugreport with a detailed description and if possible some example project to reproduce.

Offline sasq

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: warning: overriding commands for target Messages
« Reply #3 on: August 26, 2006, 10:35:20 pm »
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.
« Last Edit: August 26, 2006, 10:39:28 pm by sasq »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: warning: overriding commands for target Messages
« Reply #4 on: August 26, 2006, 11:18:10 pm »
Seems like a bug for me.

You dug up a one year old thread, in case you didn't notice :).
Just try compiling the SVN version...
Be patient!
This bug will be fixed soon...