User forums > Using Code::Blocks

Build Codeblocks with CodeBlocks.cbp

(1/1)

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...
--- End quote ---
Is that the error message that is shown? If so, it must be changed.

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:

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



--- Quote ---"Code::Blocks" does not support the current platform. Skipping...
--- End quote ---
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... :)

Navigation

[0] Message Index

Go to full version