Results 1 to 5 of 5

Thread: problem with c++ compilation

  1. #1
    arnaud is offline Registered User
    Join Date
    Feb 2006
    Location
    Bordeaux
    Posts
    22

    problem with c++ compilation

    I would like to test the Hello program in the Ice Book in c++.

    I wrote the differents programs (HelloI.cpp, Server.cpp,...)
    I compile them using gcc 3.4.4 with cygwin.

    I get a lot of errors. I check my programs. It seems i didn't do errors while coping them from the book.

    Maybe the problems is because I use cygwin... I don't know.

    I join my programs and a file which contain the errors.

    Could you tell me what is wrong ?

    Thanks a lot
    Attached Files Attached Files
    -----------------
    Arnaud

    ENSEIRB Student
    Bordeaux

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Ice isn't supported with gcc under cygwin -- of course, you could port it yourself, but you'll have better luck if you use one of the supported installations.

  3. #3
    arnaud is offline Registered User
    Join Date
    Feb 2006
    Location
    Bordeaux
    Posts
    22
    Thnak you for your answer !
    -----------------
    Arnaud

    ENSEIRB Student
    Bordeaux

  4. #4
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    Thumbs up Compiled with cl

    I have compiled your files with cl.exe and all was ok only in server.cpp had an error in line 24 adapter:undeclared identifier, i think that you miss and "d" 2 lines up , after i try to run but it fails and shows a message :

    f:\Ice-3.0.1-VC60\include\IceUtil/Handle.h:39: IceUtil::NullHandleException

    But i don`t know anything about this yet, All will arrive

    Un saludo, bye
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  5. #5
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    NullHandleException means that you are using a handle which has not yet been assigned. For example:

    Ice::ObjectAdapterPtr adapter;
    adapter->createProxy(...);

    This would cause a NullHandleException. Its more or less equivalent to dereferencing a null pointer.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ice-EJ: problem with the compilation of the sources
    By albertods in forum Help Center
    Replies: 5
    Last Post: 10-16-2006, 11:58 AM
  2. Compilation Problem with GCC
    By mykael in forum Help Center
    Replies: 1
    Last Post: 07-03-2006, 04:06 AM
  3. Compilation problem under Win XP
    By mthiercy in forum Help Center
    Replies: 4
    Last Post: 05-28-2003, 07:58 AM
  4. FreeBSD compilation problem: EPROTO undeclared
    By rodrigc in forum Bug Reports
    Replies: 1
    Last Post: 02-22-2003, 06:53 PM
  5. Replies: 2
    Last Post: 02-22-2003, 06:49 PM

Posting Permissions

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