News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Build Codeblocks with CodeBlocks.cbp

Started by mariocup, August 22, 2007, 02:42:31 PM

Previous topic - Next topic

mariocup

Hi,

I build codeblocks under windows and linux using the CodeBlocks*.cbp files. I think the corresponding project files (also the contrib) should use the project file entry for windows
<Option platforms="Windows;" />
and under linux
<Option platforms="Unix;" />

so the user will get and info
"Code::Blocks" does not support the current platform. Skipping...

if he tries to build codeblocks with a wrong project for his platform.


thomas

Quote from: mariocup on August 22, 2007, 02:42:31 PM"Code::Blocks" does not support the current platform. Skipping...
Is that the error message that is shown? If so, it must be changed.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mariocup

Hi thomas,

if a codeblocks project does not have a option platforms entry, it will be set automatically to All platforms.

If you build a window project Codeblocks.cbp under linux you can start a build of the project and get different build errors.

So I suggest to add this entry, so the user won't be able to start a build of the project under a wrong platform and gets the info at the message console

"Code::Blocks" does not support the current platform. Skipping...



thomas

Quoteif a codeblocks project does not have a option platforms entry, it will be set automatically to All platforms.
Fully agree on this one. That could be improved.


Quote"Code::Blocks" does not support the current platform. Skipping...
It should be something less frightful, though :)
Maybe "This project is not compatible with the current platform" or better yet, "This project was created on a different platform, it might not be compatible".

"Code::Blocks does not support the current platform" is a bummer  8)
Don't want people to stop using Code::Blocks after they opened a wrong project... :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."