Results 1 to 4 of 4

Thread: Patch #1 for Ice Touch 0.1.0 - invalid generated code for structs

  1. #1
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196

    Patch #1 for Ice Touch 0.1.0 - invalid generated code for structs

    Hi,

    The patch below fixes invalid generated code for structs containing float or double members.

    To apply the patch:
    Code:
       $ cd IceTouch-0.1.0
       $ patch -p1 < patch.txt
    Cheers,
    Benoit.
    Attached Files Attached Files

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Note that after applying this patch, you will need to rebuild the slice2objc translator.

    To rebuild the translator:
    Code:
     $ cd IceTouch-0.1.0/cpp
     $ make
    You need to have mcpp installed, see the INSTALL file from the top-level directory of your Ice Touch distribution for instructions on how to build mcpp (you can use the latest mcpp 2.7.2 version).

    Cheers,
    Benoit.

  3. #3
    Frank Broyles is offline Registered User
    Name: Frank Broyles
    Organization: WSUV
    Project: loc-based mobile game
    Join Date
    Mar 2009
    Posts
    1
    i cannot get it to find mcpp tho i installed it with macports.
    the build is trying to access -lmcpp but as far as i can see
    mcpp is in bin, not lib. i've tried setting the mcpp location in Make.rules.
    i've also tried install mcpp thru the link in ice downlaods. but still no luck.
    thanks in advance for help.
    error message follows:
    c++ -O2 -DNDEBUG -ftemplate-depth-128 -Wall -D_REENTRANT -L../../lib -o ../../bin/slice2cpp Gen.o Main.o -lSlice -L/usr/local/lib -lmcpp -lIceUtil -lpthread
    ld: library not found for -lmcpp
    collect2: ld returned 1 exit status
    make[2]: *** [../../bin/slice2cpp] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1


  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Frank,

    It sounds like the mcpp build from MacPorts doesn't include the mcpp library in the lib directory. The best is to download mcpp from mcpp -- a portable C preprocessor with Validation Suite and compile it yourself. You can configure it with the following command to build a static library:

    Code:
      $ ./configure CFLAGS=-fno-common --enable-mcpplib --disable-shared
      (and --prefix=<dir> if you like)
    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 05-04-2009, 07:19 PM
  2. Replies: 2
    Last Post: 10-20-2008, 08:49 AM
  3. supressing warnings in ice generated c# code
    By Lothar Kraner in forum Help Center
    Replies: 3
    Last Post: 03-20-2007, 09:09 AM
  4. C#: Attributes with Ice generated classes and structs
    By DeepDiver in forum Help Center
    Replies: 2
    Last Post: 07-23-2005, 02:16 AM
  5. Replies: 1
    Last Post: 01-25-2005, 07:30 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
  •