Hello all,
I have downloaded the ObjectHandler 0.1.1 and the log4cxx library. I have compiled the static project for log4cxx and everything looked fine. But when I included in my project the file <oh/logger.hpp> I got 35 linking errors. In effect it was the first time I implicity included <log4cxxlogger.hpp>. Below an example of the errors I got: xlProfiloLib error LNK2001: unresolved external symbol "public: virtual class log4cxx::helpers::Class const & __thiscall log4cxx::helpers::Object::getClass(void)const " (?getClass@Object@helpers@log4cxx@@UBEABVClass@23@XZ) Maybe I made a mistake in setting the log4cxx project. In quanlib site there is a page with some notes to correctly install log4cxx. But I was not able to reproduce this note: "you need to manually set environment variable LOG4CXX_DIR to the top level log4cxx directory e.g. C:\log4cxx-0.9.7" Is this the problem? Can anybody help me please? thanks in advance. enrico ____________________________________________________________ 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it |
Hi Enrico
You need to add $(OBJECT_HANDLER_DIR)\lib to the list of paths for the linker and add log4cxxs.lib and ws2_32.lib to the libs to be linked. I've updated the website to clarify the instructions for installation and usage: http://quantlib.org/objecthandler/installation.html#usage If that doesn't fix the problem please let me know. Regards, Eric On 8/4/05, enrico.michelotti <[hidden email]> wrote: > Hello all, > I have downloaded the ObjectHandler 0.1.1 > and the log4cxx library. > I have compiled the static project for log4cxx > and everything looked fine. > But when I included in my project the file <oh/logger.hpp> > I got 35 linking errors. > In effect it was the first time I implicity included <log4cxxlogger.hpp>. > > Below an example of the errors I got: > > xlProfiloLib error LNK2001: unresolved external symbol "public: virtual class log4cxx::helpers::Class const & __thiscall log4cxx::helpers::Object::getClass(void)const " (?getClass@Object@helpers@log4cxx@@UBEABVClass@23@XZ) > > Maybe I made a mistake in setting the log4cxx project. > In quanlib site there is a page with some notes to correctly install log4cxx. > But I was not able to reproduce this note: > "you need to manually set environment variable LOG4CXX_DIR to the top level log4cxx directory e.g. C:\log4cxx-0.9.7" > > Is this the problem? > Can anybody help me please? > > thanks in advance. > enrico > > > > > > > ____________________________________________________________ > 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! > Scaricalo su INTERNET GRATIS 6X http://www.libero.it > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Quantlib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > |
Free forum by Nabble | Edit this page |