logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: BUG: log4cxx-0.9.7 static lib compile error on MSVC 6: msg#00004

apache.logging.log4cxx.user

Subject: Re: BUG: log4cxx-0.9.7 static lib compile error on MSVC 6

It is a known issue which has been resolved in the CVS version, see http://nagoya.apache.org/jira/browse/LOGCXX-8.

Basically the signatures for the InterlockedMethods changed in the Platform SDK sometime between VC6 and VC7. If you are getting this error, you are most likely using VC6 with a later Platform SDK. In 0.9.7, the value of _MSC_VER was used to determine whether the old style or new style signatures were used. However, this assumes that if you are using VC6, you are also using the header files included with VC6. In the current CVS, there is a preprocessor macro which allows you to explicitly specify whether the old style interlocks are used.

The simplest way to get 0.9.7 to compile is to remove the later Platform SDK from your include path.


On Sep 1, 2004, at 1:26 AM, usr local wrote:

I'm getting the following compile error with version
log4cxx-0.9.7 when attempting to build static lib
using MSVC 6.0:

c:\log4cxx-0.9.7\src\condition.cpp(73) : error C2664:
'InterlockedCompareExchange' : cannot convert
parameter 1 from 'void ** ' to 'volatile long *'
Types pointed to are unrelated; conversion
requires reinterpret_cast, C-style cast or
function-style cast

Any ideas?

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo