|
|
|
|||||
|
include order matters?
I've noticed that my header generation is slightly different based on the order I add "-I" includes to the slice2cpp line. It may be intentional, but I'm not sure.
For example, if I have /g4/ice/aei_facility/aei_facility.ice which has the line: #include <aei_fuel.ice> which is another slice file in the same directory, then I do this: slice2cpp /g4/ice/aei_facility/aei_facility.ice -I/g4/ice -I/g4/ice/aei_facility The generated .h contains this line: #include <aei_facility/aei_fuel.h> However, if I switch the order of the includes: slice2cpp /g4/ice/aei_facility/aei_facility.ice -I/g4/ice/aei_facility -I/g4/ice The generated .h file does this: #include <aei_fuel.h> Indicating that the include directory order seems to matter for the generated files if there is some type of nesting amongst the directories.
__________________
Caleb Tennis Analytical Engineering, Inc. http://www.aei-tech.com Project: Our facility infrastructure heavily utilizes Ice Gentoo ebuild maintainer for Ice, IceRuby, etc. |
|
||||||
|
Hi Caleb,
Thanks for the report. This problem is actually already fixed on our mailine and the fix will be included in the upcoming Ice 3.2 version. The order should indeed not matter. The generated #include directive will be the one with the shortest path. See this FAQ for more details. Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Circular #include possible? | mefoster | Help Center | 1 | 09-26-2006 07:54 AM |
| The ice include path... | sac_urs | Help Center | 6 | 11-29-2005 03:03 AM |
| slice2cpp & --include-dir | vukicevic | Bug Reports | 2 | 12-02-2003 11:40 PM |
| Sequential order processing? | rhochmuth | Help Center | 2 | 08-20-2003 02:47 PM |
| generated #include | clemens | Help Center | 1 | 06-04-2003 08:21 AM |