Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-30-2003
shaver shaver is offline
Registered User
 
 
Join Date: May 2003
Posts: 35
slice2cpp -IDIR works, --include-dir DIR doesn't

--include-dir doesn't seem to work the way I would expect from the --help output (and from a quick read of slice2cpp/Main.cpp, I can't really tell what it's trying to do):

Code:
: tmp; cat slice/Base.ice
module Test {
    interface Base { };
};
: tmp; cat slice/Derived.ice
#include <Base.ice>
 
module Test {
    interface Derived extends Base { };
};
: tmp; slice2cpp -Islice slice/Derived.ice
: tmp; slice2cpp --include-dir slice slice/Derived.ice
slice/Derived.ice:1: No include path in which to find Base.ice
slice/Derived.ice:4: `Base' is not defined
: tmp;
(": tmp; " is my prompt, in case that confuses.)

Mike
Reply With Quote
  #2 (permalink)  
Old 11-30-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,772
The two options are different:

Code:
-IDIR                Put DIR in the include file search path.
--include-dir DIR    Use DIR as the header include directory.
The first specifies that DIR should be added to the search path for Slice files. The second instructs slice2cpp to generate code for which the C++ header files can be found in DIR.
Reply With Quote
  #3 (permalink)  
Old 11-30-2003
shaver shaver is offline
Registered User
 
 
Join Date: May 2003
Posts: 35
Quote:
Originally posted by marc
The two options are different:


Thanks for the clue.

Mike
Reply With Quote
  #4 (permalink)  
Old 01-16-2005
coke's Avatar
coke coke is offline
Registered User
 
 
Join Date: Jan 2005
Location: Rotterdam, Holland
Posts: 7
I was trying to make slice2cpp put the generated .h file in a directory I want to specify. Isn't there an option for that, like --output-dir for the sources? I mean, my project is like this: header files come in include/ and source files come in src/. If I use --output-dir src, then both the header file and the source file come there. I don't want that. Maybe fixable?

For the rest, I'm greatly enjoying Ice
__________________
coke
Reply With Quote
  #5 (permalink)  
Old 01-16-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,772
At present you can only provide the output directory for both the header and source files together. However, using Makefiles or VC++ project post-build steps, it's quite easy to add commands that move the generated files to any directory you wish. For examples, have a look at the various Makefiles and project files that are included in the Ice source distribution.
Reply With Quote
  #6 (permalink)  
Old 01-16-2005
coke's Avatar
coke coke is offline
Registered User
 
 
Join Date: Jan 2005
Location: Rotterdam, Holland
Posts: 7
Yes indeed, after the slice2cpp command I have a mv command in my Makefile... I just thought if there'd be a cleaner way for this Thanks anyway.
__________________
coke
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
slice2cpp and include paths Edward Bishop Help Center 1 02-21-2007 04:04 PM
subscribe to IceStorm: works from code, doesn't from config n2503v Help Center 5 10-04-2005 08:10 AM
Slice2cpp Include Problem tony_h Help Center 4 08-27-2004 11:28 AM
TCP works but UDP doesn't catalin Help Center 3 08-18-2004 07:25 AM
slice2cpp & --include-dir vukicevic Bug Reports 2 12-02-2003 10:40 PM


All times are GMT -4. The time now is 11:01 AM.


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.