Results 1 to 3 of 3

Thread: slice2freeze generating include path is error

  1. #1
    dragzhb is offline Registered User
    Join Date
    Jul 2004
    Posts
    63

    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

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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

  3. #3
    dragzhb is offline Registered User
    Join Date
    Jul 2004
    Posts
    63
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Slice Include Path
    By aerowyn in forum Help Center
    Replies: 4
    Last Post: 11-19-2009, 07:41 PM
  2. No include path, and No such file or directory
    By Djaunl in forum Help Center
    Replies: 2
    Last Post: 04-05-2007, 03:52 PM
  3. The ice include path...
    By sac_urs in forum Help Center
    Replies: 6
    Last Post: 11-29-2005, 02:03 AM
  4. IcePHP install error: Ice files not found in deault path.
    By René Pedersen in forum Help Center
    Replies: 14
    Last Post: 09-06-2005, 03:21 PM
  5. Replies: 6
    Last Post: 11-15-2004, 12:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •