Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-02-2007
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 120
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.
Reply With Quote
  #2 (permalink)  
Old 02-02-2007
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,545
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 01:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.