Re: Increasing Quantlib and Quantlib-swig-JAVA loglevel

Posted by roberto.abati on
URL: http://quantlib.414.s1.nabble.com/Increasing-Quantlib-and-Quantlib-swig-JAVA-loglevel-tp15166p15169.html

Hello, thanks for feedback.

We followed the procedure described in the two links.
We're using Visual Studio 2012 to compile both the QuantLib1.4 and the QuantLib-SWIG.

Step followed
1) enabled for the QuantLib Solution the BOOST_SP_ENABLE_DEBUG_HOOKS preprocessor directive
2) Replaced the files observable.hpp and observable.cpp (got from here ) and rebuild the entire QuantLib library 
3) enabled for the QuantLib-swig Solution the BOOST_SP_ENABLE_DEBUG_HOOKS preprocessor directive (maybe this is wrong but we failed also without the directive)
4) restart build for the QuantLib-SWIG solution.

we had following errors (here just a row of the error list)

QuantLib::Observer::unregisterWith(class boost::shared_ptr<class QuantLib::Observable> const &)" (?unregisterWith@Observer@QuantLib@@QEAA_KAEBV?$shared_ptr@VObservable@QuantLib@@@boost@@@Z) unresolved external



-- It seems that the new quantlib did not considered the preprocessor directive

5) we have done some different attempts changing the directive inside the QuantLib-swig Solution without success

Where do you think we had done some error ?

Thanks in advance, Cheers.


From: "Luigi Ballabio" <[hidden email]>
To: "roberto abati" <[hidden email]>
Cc: "QuantLib users" <[hidden email]>
Sent: Thursday, 17 April, 2014 3:36:57 PM
Subject: Re: [Quantlib-users] Increasing Quantlib and Quantlib-swig-JAVA loglevel

Hello,
    sorry, there's no setting to enable logging. I'll make a guess though: might your crashes in Java be related to the problem described by Klaus at <http://hpcquantlib.wordpress.com/2012/02/27/quantlib-swig-and-a-thread-safe-observer-pattern-in-c/> and <http://hpcquantlib.wordpress.com/2013/07/26/multi-threading-and-quantlib/>?

Luigi



On Thu, Apr 17, 2014 at 2:55 PM, <[hidden email]> wrote:
Hello, and thanks in advance for feedback.
Is there a setting, can we use, to increment LOG verbosity of the quantlib and quantlib-swig libraries ?

We're using the C++/Quantlib64bit + Quatlib-swig-Java 64 library and we have some rare crash but we're not able to collect any information on it.

All the best, Roberto

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users




--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users