Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
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
Reply With Quote
  #2 (permalink)  
Old 09-11-2004
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,780
Try the following:

slice2freeze -I/opt/ice/slice -I../../../pnote_db/src/web --dict \
phonelistMap,string,pnote::GroupList phonelistMap \
-I../../../pnote_db/slice phonelist.ice --output-dir ../../../pnote_db/src/web
Reply With Quote
  #3 (permalink)  
Old 09-12-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
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
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
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


All times are GMT -4. The time now is 01:13 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.