Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: Chun Jiu on March 08, 2015, 06:19:04 am

Title: Resource compiler option is invalid, C::B SVN 10130
Post by: Chun Jiu on March 08, 2015, 06:19:04 am
Hi All,

    I found the resource compiler options will not always appear in the actual work.

    "Project build option -> Compiler settings -> Other resource compiler option"  is invalid.

    Temporary alternative method :

    “Settings -> Compiler... -> Toolchain executables -> Program Files -> Resource compiler: windres.exe”

    Added option to the back, for example : windres.exe --target=pe-i386

    It works!
Title: Re: Resource compiler option is invalid, C::B SVN 10130
Post by: Chun Jiu on March 08, 2015, 06:23:58 am
PS:

The C::B  svn 10130 compiled using TDM-GCC64 with the wx2.8.12 lib.

Therefore, it is 64bit of x64.

Environment is Win7 64bit.
Title: Re: Resource compiler option is invalid, C::B SVN 10130
Post by: MortenMacFly on March 08, 2015, 07:23:30 pm
You have to reset the compiler options for this to work. The patch includes the changed compiler flags, but if you have customised the compiler before they were not being updated.
Title: Re: Resource compiler option is invalid, C::B SVN 10130
Post by: Chun Jiu on March 09, 2015, 05:36:42 am
thks, I tried again after the reset, still the same.

Options for this setting does not appear in the command line.

But never mind, the alternative is feasible.

PS:

Additionally, compiler & linker options OK. Except resource compiler options.
Title: Re: Resource compiler option is invalid, C::B SVN 10130
Post by: MortenMacFly on March 09, 2015, 08:05:31 am
thks, I tried again after the reset, still the same.
Oh dear, I've forgotten to commit one part of the implementation. You are right, it does not work in trunk - in my local copy it did all the time. I'll commit the missing portion today... the next nightly should work as expected.
Thanks for spotting this!
Title: Re: Resource compiler option is invalid, C::B SVN 10130
Post by: Chun Jiu on March 09, 2015, 06:09:10 pm
Thank you for the work done.
Now it worked, Perfect!  :)

C::B svn10136 x64 under windows 7 64bit with tdm-gcc64.