Archived

This forum has been archived. Please start a new discussion on GitHub.

error when use ice 2.1 and vc6.0

i use ice in my program , i put ice/ice.h in my inlcude files ,
when i compile it , i got the error below :

C:\Ice-2.1.0-VC60\include\IceUtil/Mutex.h(141) : error C2065: 'TryEnterCriticalSection' : undeclared identifier


but i don't use ice's Mutex.


what is the problem?

Comments

  • benoit
    benoit Rennes, France
    I assume you're trying to compile your application on a Windows 98, ME or NT 3.51 platform, correct? The Windows binary distribution posted on our web site wasn't compiled to support these platforms.

    You will need to compile Ice 2.1.0 from the source distribution if you want to use it on these platforms (it will also work with Windows 2000/XP). See the special instructions related to these platforms in the INSTALL.WINDOWS file from the source distribution. If you don't want to compile the third party libraries, you can use the ThirdParty-2.1.0-VC60.msi installer from http://www.zeroc.com/download.html#win32_msi.

    Benoit.
  • i am sorry but i compile my application on windows xp sp2 , and i got the error message
  • add following preproc definition:

    _WIN32_WINNT=0x0500

    this enables the existance of 'TryEnterCriticalSection' in the header Winbase.h