Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-18-2005
ralf3 ralf3 is offline
Registered User
 
Name: hexun
Organization: china
Project: spine
 
Join Date: Dec 2004
Posts: 6
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?
Reply With Quote
  #2 (permalink)  
Old 03-18-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,533
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.
Reply With Quote
  #3 (permalink)  
Old 03-18-2005
ralf3 ralf3 is offline
Registered User
 
Name: hexun
Organization: china
Project: spine
 
Join Date: Dec 2004
Posts: 6
i am sorry but i compile my application on windows xp sp2 , and i got the error message
Reply With Quote
  #4 (permalink)  
Old 03-18-2005
DeepDiver's Avatar
DeepDiver DeepDiver is online now
Registered User
 
Name: Thomas Müller
Organization: Freelance Software Developer
Project: Project depend on Customers
 
Join Date: Nov 2004
Location: Munich, Bavaria, Germany
Posts: 100
add following preproc definition:

_WIN32_WINNT=0x0500

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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error C1189: #error : WINDOWS.H already included delloby Help Center 1 02-05-2006 02:58 AM
Project : error PRJ0019: A tool returned an error code: "Performing Custom Build Step Falagard Help Center 6 04-11-2004 10:12 PM
link error: error LNK2001: unresolved external symbol __imp___assert gmueckl Help Center 2 09-03-2003 03:49 AM


All times are GMT -4. The time now is 05:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.