User forums > Help

changing codeblocks compiler

<< < (3/4) > >>

Michael:

--- Quote from: Takeshi Miya on December 12, 2005, 12:28:03 pm ---Another option is to have in New from template dialog a Compiler option, just below Category.
And showing the templates according to each compiler.

--- End quote ---
But if I want to chose a template not supported for the selected compiler?

Michael

takeshimiya:
You'll choose the compiler that you think it's most simmilar.

eg. you want a OpenWatcom QT project.
You think GCC is perhaps simmilar to OpenWatcom (rather than MSVC).

Then you choose the GCC QT template, and in the template, you change the according things to make it work on OpenWatcom.
You save the project as a template, and if you want, submit it to SF tracker so others can use it.


That is more or less what you'll do anyways with the other option (having a messagebox telling its not supported...).
Only that now you'll have the option to choose the most simmilar compiler template (or whatever you want).

Michael:

--- Quote from: Takeshi Miya on December 12, 2005, 01:12:00 pm ---You'll choose the compiler that you think it's most simmilar.

eg. you want a OpenWatcom QT project.
You think GCC is perhaps simmilar to OpenWatcom (rather than MSVC).

Then you choose the GCC QT template, and in the template, you change the according things to make it work on OpenWatcom.
You save the project as a template, and if you want, submit it to SF tracker so others can use it.


That is more or less what you'll do anyways with the other option (having a messagebox telling its not supported...).
Only that now you'll have the option to choose the most simmilar compiler template (or whatever you want).

--- End quote ---
It could be a solution. But IMHO it would be good to make this as a selectable option for "advanced user". For "normal user" it would be better to propose templates filtered by supported compilers. If then a user would like to use a not supported template, she/he could activate the option and then chose the most similar compiler template.

Michael

takeshimiya:
I don't know, that could make more hassle than it solves.
How advanced for a user is selecting a compiler?

Apart from that, you could see it clearly what templates support what compiler and such.

Making a selection of a compiler in New from template solves things like:
wxWidgets template makes sense for GCC, MSVC, DMars, etc.
But for SDCC only makes sense C templates (SDL, Hello World).

And also, the users have the option to choose the compiler in: Compiler Settings, and Project Settings.
It makes the logical thing, having a option to select the compiler from New from template dialog.

Urxae:
It might be a good idea to put the option to hide incompatible templates in the dialog itself though, so you don't have to close it, go to the settings, enable the option, and go back to the dialog.
Either a checkbox "Only show templates that support $DEFAULT_COMPILER / the default compiler", or a "Settings..." button (if there are more settings for the dialog).
If the option to select a compiler is added to the dialog as Takeshi Miya suggested, the checkbox text can be shortened to "Only show compatible templates" or some such.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version