Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Log4cxx in my project, unresolved symbols despite hours of work: msg#00055

apache.logging.log4cxx.user

Subject: Log4cxx in my project, unresolved symbols despite hours of work

I’m using MSVC 2008 Express Edition.  I downloaded the SVN head today and built
it fine (after some wrestling with it), and was able to use log4cxx in one
project without much problem, however, I then ported some of the code I had
over into another MSVC project and again tried to integrate log4cxx and am
getting a couple of errors that are stumping me:

Linking...
   Creating library .\Release/Camera.lib and object .\Release/ Camera.exp
Camera.obj : error LNK2019: unresolved external symbol "public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const & __stdcall
log4cxx::Level::getInfo(void)"
(?getInfo@Level@log4cxx@@SGABV?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@XZ)
referenced in function "int __stdcall convert(unsigned char *,int &,int &)"
(?convert@@YGHPAEAAH1@Z)
Camera.obj : error LNK2019: unresolved external symbol "public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Logger> __stdcall
log4cxx::Logger::getLogger(char const * const)"
(?getLogger@Logger@log4cxx@@SG?AV?$ObjectPtrT@VLogger@log4cxx@@@helpers@2@QBD@Z)
referenced in function "void __cdecl `dynamic initializer for 'logger''(void)"
(??__Elogger@@YAXXZ)
..\Bin\Camera.ax : fatal error LNK1120: 2 unresolved externals

I built the log4cxx.lib both statically and dynamically and the above output is
when I use the shared lib, I’ve also added the Pre-processor directive
LOG4CXX_STATIC.

I’ve done everything I can think of to get this right and this mailing list is
my last resort ☺  I’d hate to waste your time.





Eric Eborn,
Software Engineer
801-545-5449
eric.d.eborn@xxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

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