Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-21-2007
Edward Bishop Edward Bishop is offline
Registered User
 
Name: Edward
Organization: Sony
Project: Automated Test
 
Join Date: Oct 2005
Location: San Diego
Posts: 31
slice2cpp and include paths

I have a include/naming problem. I have a slice file TVxx.ice:
================================================== ===
#include <Tuner.ice>

module Services {

interface TVxx extends Tuner {
// ...
};

};
================================================== ===


and slice2cpp generates TVxx.h:
.
.
.
#include <Tuner.h>
.
.
.

but Tuner.h conflicts wth Tuner.h in the microsoft platform sdk.
So, I can rename Tuner to something less generic, but I was
wondering if there is some slice2cpp directive that would
cause it to generate instead
.
.
.
#include <MyObscureDirectory/Tuner.h>
.
.
.

Thanks
-Edward
__________________
Edward
Reply With Quote
  #2 (permalink)  
Old 02-21-2007
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi,

The translator doesn't provide a way to change the pathname of included files in the way you want. The strategy we recommend is to place your Slice files in a sufficiently unique subdirectory and change your Slice files accordingly. For example:
Code:
#include <TV/Tuner.ice>
...
You'll probably find the --include-dir useful as well. Take a look at section 6.15.1 of the Ice manual for more information. You can also examine the build process that we use for the Ice sources if you need an example.

Hope that helps,
- Mark
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
Patch #8 for Ice 3.1.0: support for paths with spaces in -I option benoit Patches 2 01-05-2007 05:50 AM
Question about #include AlexKom Help Center 3 07-20-2005 12:15 PM
slice2cpp -IDIR works, --include-dir DIR doesn't shaver Bug Reports 5 01-16-2005 07:34 PM
Slice2cpp Include Problem tony_h Help Center 4 08-27-2004 12:28 PM
slice2cpp & --include-dir vukicevic Bug Reports 2 12-02-2003 11:40 PM


All times are GMT -4. The time now is 12:04 AM.


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