Linking Error for ObjectHandler

Posted by Mark Schuler on
URL: http://quantlib.414.s1.nabble.com/Linking-Error-for-ObjectHandler-tp7574.html


Hi all,


I've developed a few QuantLib classes and usually get everything working, but not in the
case of the ObjectHandler. I spent hours trying different settings and setups, but I
still get annoying linkin errors. The original QuantLib never caused any linking/build
errors for me. When building obj handle, I get

>NMAKE : fatal error U1077: "doxygen.exe": R³ckgabe-Code "0x1"
saying doxygen wasn't found. In the docs project.


Here is the next problem. I compile the ObjectHandler_vc8 project, run the example
from this project and everything works fine. However, if I open the ExampleCpp project 
as a single project, I receive linkin errors (I state two of them):

-----------------------------------------------------------------------------------------------------------------------------------
1>example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class ObjectHandler::Repository & __cdecl ObjectHandler::Repository::instance(void)" (?instance@Repository@ObjectHandler@@SAAAV12@XZ)" in Funktion ""void __cdecl makeCustomer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,long const &)" (?makeCustomer@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0ABJ@Z)".

1>example.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __thiscall AccountExample::CustomerValueObject::getPropertyNamesVector(void)const " (?getPropertyNamesVector@CustomerValueObject@AccountExample@@UBE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)".
-----------------------------------------------------------------------------------------------------------------------------------

I then tried to setup my own project, but get the same problems. I have linked against all the libraries stated in the installtion
guide, eg. obj handler +log4cxx. Basically, I have the same setup as the example project, so I get the same errors. I've build
in all possible modes (static/dynamic/debug/release), but nothing solves the problem.

Can anyone help?







Kein Werbe-Blabla - hier klicken!
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users