Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ardabro on April 26, 2013, 02:42:08 pm

Title: "Platforms" and crosscompilation for windows with mingw
Post by: ardabro on April 26, 2013, 02:42:08 pm
Hi
I can't understand what is philosophy of "Platforms" setting.
I configured C::B under linux to use mingw compiler.
When "platforms" is set to "all" windows executable is properly created but with no "exe" extension.
I set "platforms" to "Windows" C::B refuses to compile, because of "XXX does not support the current platform".
But my dedicated target platform is windows and only windows despite compilation process platform.
So I deduced that there is a way to select "current _target_ platform" for project target or globally for compiler, but I didn't find anything. Little zonk :(
How to properly configure crosscompilation?

regards
Title: Re: "Platforms" and crosscompilation for windows with mingw
Post by: oBFusCATed on April 26, 2013, 02:58:12 pm
How to properly configure crosscompilation?
Uncheck the option for automatic extension and type it yourself.
The platform controls if a target should be built or not on the current platform.
Title: Re: "Platforms" and crosscompilation for windows with mingw
Post by: ardabro on April 26, 2013, 04:56:49 pm
ok, thanks!
Seems that term "Platfom" is a bit confusing giving no hint that it means compilation platform.