|
|
|
|||||
|
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;
Mike |
|
||||||
|
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 |
|
||||||
|
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.
|
![]() |
| 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 |
| 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 |