Now it is like this:
windres.exe -i adelay\editor\resources\surrounddelay.rc -J rc -o obj\Debug\adelay\editor\resources\surrounddelay.res -O coff -IC:\MinGW
\include
windres.exe: can't open bitmap file `bmp00128.bmp': No such file or directory
While it should be:
windres.exe -i adelay\editor\resources\surrounddelay.rc -J rc -o obj\Debug\adelay\editor\resources\surrounddelay.res -O coff -IC:\MinGW
\include -ID:\Lavori\CodeBlocks\VST\adelay\editor\resources
That is: it does not add the include dir "D:\Lavori\CodeBlocks\VST\adelay\editor\resources" that I added in the project build options.
as said : uninitialized variable :
fixed (will be available in tomorrows nightly)
the offending code :
CompileTargetBase::CompileTargetBase()
: m_TargetType(ttExecutable)
{
//ctor
for (int i = 0; i < 4; ++i) // <--------------------------------------------------------- HERE IT IS !!!!!
m_OptionsRelation[i] = orAppendToParentOptions;
// default "make" commands
m_MakeCommands[mcBuild] = _T("$make -f $makefile $target");
m_MakeCommands[mcCompileFile] = _T("$make -f $makefile $file");
m_MakeCommands[mcClean] = _T("$make -f $makefile clean$target");
m_MakeCommands[mcDistClean] = _T("$make -f $makefile distclean$target");
m_MakeCommandsModified = false;
}
we only initialize 4 of them and when we look at the enum ;-)
enum OptionsRelationType
{
ortCompilerOptions = 0, /**< Compiler option */
ortLinkerOptions, /**< Linker option */
ortIncludeDirs, /**< Compiler include dir option */
ortLibDirs, /**< Linker include dir option */
ortResDirs, /**< Resource compiler include dir option */
ortLast
};
and
OptionsRelation m_OptionsRelation[ortLast];
The resources entry is the fifth !!
Solution : replace the magic number 4 by "ortLast". ;-)