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!

Fwd: Build namespace issues: msg#00043

apache.logging.log4cxx.user

Subject: Fwd: Build namespace issues



Begin forwarded message:

From: Curt Arnold <carnold@xxxxxxxxxx>
Date: March 15, 2005 4:15:01 PM CST
To: Log4J Users List <log4j-user@xxxxxxxxxxxxxxxxxx>
Subject: Re: Build namespace issues

On Mar 15, 2005, at 3:31 PM, Ron Ohmer wrote:

I ran into a rather odd error when using SocketAppenders.
 
I have a wrapper that has worked fine, no warnings, nothing until I added functionality for the SocketAppender..
 
Now I get what follows this..  Does anyone know the root of this (Other than SocketAppender.cpp.. :-))   BTW, VS.NET 2k3 is the build tool.


The problem is that pervasively throughout log4cxx (even the CVS HEAD), you see a construct like:

class SocketImpl;
typedef helpers::ObjectPtrT<SocketImpl> SocketImplPtr;

When one of these smart-pointer templates is used in a publicly exposed method on a exported class, you end up with an exported method depending on a non-exported class. If the template expansion differs in any way from the expansion when the library was build, bad things will happen hence the warning.

What should be done is something like:

class SocketImpl;
class LOG4CXX_EXPORT SocketImplPtr : public helpers::ObjectPtrT<SocketImpl> {
...
}

I'll log this as a bug and work on it as soon I finish my current task (likely 24-48 hours away).






<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