Home » U++ TheIDE » U++ TheIDE: Packages » Am I misunderstanding how packages are supposed to work?
Re: Am I misunderstanding how packages are supposed to work? [message #3317 is a reply to message #3316] |
Fri, 19 May 2006 13:50 |
gprentice
Messages: 260 Registered: November 2005 Location: New Zealand
|
Experienced Member |
|
|
Babs wrote on Fri, 19 May 2006 23:14 | Thanks for your speedy reply, but unless I've missed something that section is purely about build configurations. This is fine, and the way I've configured my packages at the moment (by adding the compiler switches to each package tied to WIN32), but it makes no mention of how to add an option (be it compiler switches or additional libs) that will automatically be applied to all packages in the project without having to add it manually to each one.
If such a thing exists I would like to know how to do it but at the end of the day it more an annoyance/laziness issue than anything else. And I can't bitch too much because since it's open source I can always add it myself
|
Um, well, it says this in the help file ...
<quote>
"Compiler options. These are text strings that will be supplied on the command line to the compiler. These will be added to the command line after (at the end of) the compiler options generated by TheIDE. These options affect all source files being compiled, not just those from the main package, however you can use build flags and the "dotted" mechanism (see Package-build-configurations above) to restrict which packages the options are applied to."
<end quote>
In the package organizer, to add compiler options, right click and select "new compiler options", then enter e.g. GCC in the "When" column and -Iwhatever in the options column, or e.g. MSC8 in the when column and /Iwhatever in the options column.
According to what I wrote in the help file, the -I or /I switches as above will be used for all source files compiled in the project across all packages. I believe I tested this at the time I wrote it but I'm not 100% sure I tested it "transitively".
Am I making any sense ??
Graeme
|
|
|
Goto Forum:
Current Time: Wed May 08 11:33:52 CEST 2024
Total time taken to generate the page: 0.02176 seconds
|