Results 1 to 3 of 3

Thread: Intel compiler on Windows

  1. #1
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105

    Intel compiler on Windows

    i found a neccessary change to make ice compile on windows using
    intel compiler.

    ProxyHandle.h line 210:
    original code:
    Code:
    #ifdef _WIN32 // COMPILERBUG: Is VC++ or GNU C++ right here???
        template<>
        ProxyHandle& operator=(const ProxyHandle<T>& r)
    #else
        ProxyHandle& operator=(const ProxyHandle& r)
    #endif

    change:
    Code:
    #ifdef _WIN32  // COMPILERBUG: Is VC++ or GNU C++ right here???
     #ifdef __INTEL_COMPILER
        ProxyHandle& operator=(const ProxyHandle& r)
     #else
        template<>
        ProxyHandle& operator=(const ProxyHandle<T>& r)
     #endif
    #else
        ProxyHandle& operator=(const ProxyHandle& r)
    #endif
    this should also apply to
    ice/handle.h
    ice/proxyhandle.h
    iceutil/handle.h
    iceutil/proxyhandle.h

    HAPPY NEW YEAR

    tom
    Last edited by DeepDiver; 01-03-2005 at 03:58 AM.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Changing a constructor into an assignment operator is a bit odd!

    The ifdef should really be:
    #ifdef _MSC_VER

    or in case this is fixed in say VC71:
    #if defined(_MSC_VER) && _MSC_VER < 1310

    Cheers,
    Bernard

  3. #3
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105
    sorry - this was a copy past error!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-19-2007, 02:18 PM
  2. OSX package on Intel MAC
    By ctennis in forum Bug Reports
    Replies: 2
    Last Post: 11-23-2006, 08:32 PM
  3. Intel(R) C++ Compiler 9.0
    By level in forum Help Center
    Replies: 1
    Last Post: 06-15-2005, 04:02 AM
  4. Help compiling Ice on Linux with Intel compiler
    By kevinl in forum Help Center
    Replies: 1
    Last Post: 01-30-2004, 05:27 PM
  5. Ice for non-Intel systems (SPARC)
    By fmccor in forum Comments
    Replies: 15
    Last Post: 03-07-2003, 12:18 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
  •