Results 1 to 5 of 5

Thread: rh4 binary archive + visual studio 2005 no sp1

  1. #1
    pdb1013 is offline Registered User
    Name: Peter Brandt
    Organization: Jump Trading
    Project: windows ui for linux app
    Join Date
    Mar 2008
    Posts
    12

    rh4 binary archive + visual studio 2005 no sp1

    Why have the rh4 binary archive and visual studio 2005 no sp1 .msi not been included with the latest release?

    I'm having trouble using Ice 3.2.0 with GCC 4.3.3 because of the auto_ptr no type errors mentioned in other threads (possibly something to do with missing includes) and am trying to upgrade to the latest version. However, I am using visual studio 2005 with no sp1 (firm-wide decision, I have no choice in the matter) and preferred the old rh4 binary archive because everything was in one place.

    Just curious... The visual studio 2005 no sp1 release would help me out tremendously. Alternatively, is there an easy way to make 3.2.0 work with GCC 4.3.3?


    Here is the GCC 4.3.3 output. This code works perfectly, with no warnings in 3.4.6

    Thanks!



    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:56: error: ISO C++ forbids decl
    aration of âauto_ptrâ with no type
    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:56: error: invalid use of â::â
    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:56: error: expected â;â before
    â<â token
    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:84: error: ISO C++ forbids decl
    aration of âauto_ptrâ with no type
    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:84: error: invalid use of â::â
    /home/fiapp/opt/Ice-3.2.0/include/Ice/Outgoing.h:84: error: expected â;â before
    â<â token

  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
    Hi Peter,

    We decided to provide only RPM binary distributions for Ice 3.3.x on RHEL and SLES, because RPM is the standard packaging format for these platforms. We'll do the same with the upcoming 3.4 release.

    I believe we decided to require VS2005 SP1 due to some issue with the Visual Studio IDE, but I am not sure anymore. It's true that installing SP1 is a pain (it's very large and takes a long time), so in retrospect this may not have been the best decision. In any case, we do not provide a VS2005-no-SP1 binary distribution for Ice 3.3.x.

    We didn't support GCC 4.3 with Ice 3.2 (http://www.zeroc.com/platforms_3_2_1.html); my recommendation would be to upgrade rather than try to "port" Ice 3.2 to GCC 4.3.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    pdb1013 is offline Registered User
    Name: Peter Brandt
    Organization: Jump Trading
    Project: windows ui for linux app
    Join Date
    Mar 2008
    Posts
    12
    I will push forward with upgrading. One thing that is causing me a lot of grief is I think Ice 3.2.0 was tolerant of _WIN32_WINNT < 0x0400. For whatever reason, other libraries I'm pulling in cause TryEnterCriticalSection to be not defined (i think they define things that prevent the inclusion of certain windows api headers), which worked fine with Ice 3.2.0 if you set _Win32_WINNT to 1 for example, before including any Ice headers. Looking in \Ice-3.3.1\include\IceUtil\Config.h, there are some differences between the versions with respect to the section that includes <windows.h>

    There is some kind of order of includes issue or libraries not playing well together, resulting in TryEnterCriticalSection not being defined, although _WIN32_WINNT >= 0x0400 and the system is WinXP SP2, resulting in compilation errors about Ice-3.3.1\include\IceUtil\Mutex.h... The same slice definition worked fine with Ice 3.2.0. Any pointers anyone has would be very much appreciated. Thanks again

  4. #4
    pdb1013 is offline Registered User
    Name: Peter Brandt
    Organization: Jump Trading
    Project: windows ui for linux app
    Join Date
    Mar 2008
    Posts
    12
    Interestingly, if _WIN32_WINNT is some arbitrary number less than 0x0400, everything works perfectly with Ice 3.2.0. If _WIN32_WINNT is set to 0x0400 or above, 3.2.0 has the same compile errors as 3.3.1.

    With Ice 3.3.1, setting _WIN32_WINNT to less than 0x0400 doesn't appear to be an option. I tried commenting out a few parts of Config.h for Ice 3.3.1 just for fun to see if it would build anyway to no avail. Don't know if this helps or not.

    -Peter

  5. #5
    pdb1013 is offline Registered User
    Name: Peter Brandt
    Organization: Jump Trading
    Project: windows ui for linux app
    Join Date
    Mar 2008
    Posts
    12
    So, this problem was fixed by setting _WIN32_WINNT=0x0500 in the command line arguments to the compiler, as opposed to in the code before including the Ice headers. I think some part of the windows api was being included without that set properly, causing TryEnterCriticalSection to remain undefined. Everything is working fine in windows. It seems cleaner setting this in the project settings/command line than in the code anyway.

    Thanks for your help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Visual Studio 2003/2005 projects
    By ren-wei in forum Help Center
    Replies: 0
    Last Post: 11-29-2010, 01:52 AM
  2. compiler settings Visual Studio 2005
    By susannesch in forum Help Center
    Replies: 3
    Last Post: 07-02-2009, 10:18 AM
  3. Visual Studio Express 2005 C++ compiler error
    By blonder in forum Help Center
    Replies: 6
    Last Post: 05-22-2007, 10:04 AM
  4. Ice 3.0.1 & Visual Studio 2005 (Express edition)
    By albertods in forum Help Center
    Replies: 6
    Last Post: 05-19-2006, 09:54 AM
  5. Visual Studio 2005 C# ICE Issues
    By jborg in forum Bug Reports
    Replies: 3
    Last Post: 12-23-2005, 05:42 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
  •