|
|
|
|||||
|
The ice include path...
hi,
i have question regarding including the ice files. suppose i have a ice file... a.ice module X { module Y { interface Z { void doSomething(int x, int y); }; }; }; and if i have a ice file b.ice in the same directory: #include "a.ice" module D { module E { interface F implements ::X::Y::Z { void doSomething(int x, int y); }; }; }; this does not work. how do i include a sice file into another sice file |
|
|||||
|
The Ice include path
and one more note on that,
if i do slice2py, it compiles. and it does not work when i do Ice.loadSlice(path_to_icefile). thanks, |
|
|||||
|
The ice include path
hi here is the complete description of the problem:
i have a ice file called category.ice in /opt/prh/prhPC/ice/prhice/ directory. in the same directory i have another file called utils.ice, which contains common code that would be present in all the ice files. so i do, #include "utils.ice" in all the files, so that i could use that common method getRowCount() every ice module without having to rewrite many times. but when i do a Ice.loadSlice("--all /opt/prh/....") , I get the following error. Traceback (most recent call last): File "categoryclient.py", line 6, in ? Ice.loadTraceback (most recent call last): File "categoryclient.py", line 6, in ? Ice.loadSlice('/opt/prh/prhPC/ice/prhice/category.ice') File "/opt/prh/prhPC/ice/prhice/category.ice", line 3, in ? ImportError: No module named _opt_prh_prhPC_ice_prhice_utils_ice Slice('/opt/prh/prhPC/ice/prhice/category.ice') File "/opt/prh/prhPC/ice/prhice/category.ice", line 3, in ? ImportError: No module named _opt_prh_prhPC_ice_prhice_utils_ice thanks, |
|
||||||
|
It looks like Ice.loadSlice is not properly handling files included with #include "" (instead of #include <>). You should be able to work around this problem by using the following command instead:
Code:
Ice.loadSlice("--all -I/opt/prh/prhPC/ice/prhice /opt/prh/prhPC/ice/prhice/category.ice")
|
|
||||||
|
Quote:
Take care, - Mark |
|
|||||
|
hi,
the --all flag is working, thanks for the reply. thanks, |
![]() |
| 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 absolute path | DeepDiver | Bug Reports | 2 | 10-25-2005 09:30 PM |
| Slice Include Path | aerowyn | Help Center | 2 | 10-17-2005 05:16 PM |
| Path #1 for Ice 2.1.1, all languages | michi | Patches | 0 | 06-08-2005 03:06 AM |
| Slice Path | Jennie | Help Center | 2 | 11-18-2004 06:10 PM |
| slice2freeze generating include path is error | dragzhb | Bug Reports | 2 | 09-12-2004 10:55 PM |