Bug #16395 2009-11-02 15:17

christobal

Compile current file results in Exception

The compile current file command results in a codeblocks exception if the Compiler of the active Build Target is different to the Projects default compiler and the target hasn't been (re)built since Code::Blocks was started.

This is caused by the Compiler Init in the compilergcc.cpp - file (line 2962 @ rev. 5833):

CompilerFactory::GetCompiler(m_CompilerId)->Init(m_Project);

The initialization of the correct compiler (the build target compiler instead of default compiler) fixes the problem (replace "m_CompilerId" with "bt->GetCompilerID()").

Category
Compiler
Group
 
Status
Open
Close date
 
Assigned to