User forums > General (but related to Code::Blocks)

Exporting compiler settings.

<< < (2/2)

takeshimiya:
Only on the compiler part, because you can reduce the firsts steps of "do this and that blabla and then save as a template", and only distribute that template.

killerbot:
do you mean the settings of the 'compilers' you added to CB ?

In the post RC2, that is SVN head, they are stored in the default.conf configuration file from the user, no longer in the registry. Then you could copy paste the parte of the compiler to another config file. Might be dangerous.
There is for the moment one big flaw in CB, user added compilers have id's 255 and above, internal registered compilers start from 0, that's ok. But in the projects all of them are referenced by a new number starting from 0, NOT th ID, so if your new compiler comes in at position 8 now, it is possible you get in conflict with an update of CB. Hoiw, well suppose CB has a new internal registerd compiler, that one will be then number 8.

For the moment this will not be fixed (dev's have other priorities), so you need to keep that in mind, that you might have to change all those stuff again. That is : MyComplier is now 9 instead of 8, and in the cbp files I have to adjust accordingly.

I am gone study that code of CB dealing with this part again some of these days, and see if I can find a solution for it, since this problem is preventing me to deploy CB with my collegues.


Cheers,
Lieven

takeshimiya:
I think your solution is for now:

-Create a template using the global variables (new feature in SVN HEAD).
-Get the SVN source code, and add your new compiler settings as a new compiler, straight in the sourcecode.
-Compile yourself and distribute it with the template you created above. 8)

Navigation

[0] Message Index

[*] Previous page

Go to full version