Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: bigbug on December 11, 2006, 03:11:11 pm

Title: Wizard.GetTargetCompilerID doesn't seem to work
Post by: bigbug on December 11, 2006, 03:11:11 pm
If you use the MinGW g++ compiler, and create a project with either the dll wizard or the static-lib wizard, Code::Blocks complains not to know, how to set the Debug/Optimization flags. The wizard.script of the console wizard comments, that Wizard.GetTargetCompilerID doesn't seem to work and uses Wizard.GetCompilerID instead.
Wizard.GetTargetCompilerID is used in the dll wizard (line 75 and 80) and in the static-lib wizard (also line 75 and 80). Replacing with Wizard.GetCompilerID makes the wizards work again.
Title: Re: Wizard.GetTargetCompilerID doesn't seem to work
Post by: Biplab on December 11, 2006, 03:33:14 pm
You are right. This call doesn't work. I had submitted one patch to fix console application wizard. That time I had replaced the GetTargetCompilerID to GetCompilerID.
Title: Re: Wizard.GetTargetCompilerID doesn't seem to work
Post by: MortenMacFly on December 11, 2006, 07:01:13 pm
Replacing with Wizard.GetCompilerID makes the wizards work again.
Done that in SVN. Thanks.
(Have to find the root of this anyway, though - actually GetTargetCompilerID() *should* work.)
With regards, Morten.