|
|
|
|||||
|
slice2freeze generating include path is error
when I use slice2freeze to generate map file. but it's include file has include path. I think it's error.
I use automake and autoconf to build my system. my ice file in $(top_srcdir)/slice/phonelist.ice and I generate file include header and cpp locate in $(top_srcdir)/src/web when I build it , I create a build directory to build it. this is my command: slice2freeze -I/opt/ice/slice -I../../../pnote_db/src/web --dict \ phonelistMap,string,pnote::GroupList phonelistMap \ ../../../pnote_db/slice/phonelist.ice --output-dir ../../../pnote_db/src/web It will generate 2 file -> phonelistMap.h and phonelistMap.cpp in ../../../pnote_db/src/web but in phonelistMap.h file ,it include the following path in include #include <Freeze/Map.h> #include <../../../pnote_db/slice/phonelist.h> in phonelistMap.cpp file ,it include the following path in include #include <Ice/BasicStream.h> #include <../../../pnote_db/src/web/phonelistMap.h> then g++ can't find phonelist.h,I don't want it generate path in include ,just like these in phonelistMap.h #include <Freeze/Map.h> #include <phonelist.h> in phonelistMap.cpp #include <Ice/BasicStream.h> #include <phonelistMap.h> How can I set compile parameter to comiple file like that. thanks |
|
|||||
|
It's fine ,thanks.
But phonelist.ice must set the full path,if not, slice2freez2 will report can't find phonelist.ice file. the command like this: slice2freeze -I/opt/ice/slice -I../../../pnote_db/src/web --dict \ phonelistMap,string,pnote::GroupList phonelistMap \ -I../../../pnote_db/slice ../../../pnote_db/slice/phonelist.ice --output-dir ../../../pnote_db/src/web |
![]() |
| 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 |
| Automatically Generating an ObjectFactory | zhi | Help Center | 1 | 01-09-2007 10:59 PM |
| The ice include path... | sac_urs | Help Center | 6 | 11-29-2005 02:03 AM |
| Slice Include Path | aerowyn | Help Center | 2 | 10-17-2005 04:16 PM |
| IcePHP install error: Ice files not found in deault path. | René Pedersen | Help Center | 14 | 09-06-2005 03:21 PM |
| include/IceUtil/Config.h:196: error: `INT64_MIN' was not declared in this scope | dragzhb | Bug Reports | 6 | 11-15-2004 12:17 AM |