Posted by
Luca Berardi on
URL: http://quantlib.414.s1.nabble.com/Compiler-poll-tp3647p3651.html
Hi Eric
thanks for replying.
> Please could you
> 1) Determine which runtime library is used by your project. For
> example let's suppose you're using configuration "Win32 Release" which
> is set to use runtime library "Single-Threaded"
I have tried to compile under different configurations, i.e.:
1) Release, 2) Release Single Thread, 3) Release MT DLL.
Unfortunately I always get the same linking errors.
> 2) Build the corresponding configuration of ObjectHandler. In this
> example you'd build ObjectHandler configuration "Win32 Release
> SingleThread" which uses the runtime library "Single-Threaded"
I did so, I compiled ObjectHandler under the configurations mentioned
above. This is what I have in the ObjectHandler/lib folder:
ObjectHandler-vc71-mt-0_1_0.lib
ObjectHandler-vc71-mt-s-0_1_0.lib
ObjectHandler-vc71-s-0_1_0.lib
ObjectHandler-vc71-mt-gd-0_1_0.lib
I guess the last one is for compiling in Debug mode, and it seems to
be the only one I need for (successfully) compiling my own project
both in Debug and in Debug MTDLL.
> 3) Back in your project - ensure that the library path includes the
> ObjectHandler/lib directory, but don't specify the ObjectHandler lib
> file that you're linking to
I checked this, and it is set correctly.
> 4) Your project should (indirectly) #include
> ObjectHandler/oh/autolink.hpp, this file will determine the runtime
> library that your project is using and automatically configure your
> project to link to the corresponding ObjectHandler library (e.g.
> ObjectHandler-vc7-s-0_1_0.lib)
My project includes <ObjectHandler/objhandler.hpp> which includes
<ObjectHandler/objhandlerdefines.hpp>, which in turn includes
#ifdef BOOST_MSVC
# include <ObjectHandler/autolink.hpp>
#endif
Please note that I include the Boost library in my settings, hence I
expect that BOOS_MSVC be defined.
> If you're still having trouble please send another message with the
> details, please also specify whether you're using the latest (only)
> ObjectHandler release (0.1.0) or a later CVS snapshot.
I use the ObjectHandler release 0.1.0.
I hope this helps...
Luca
__________________________________________________________________
Tiscali Adsl 3 Mega Flat con 3 MESI GRATIS!
Con Tiscali Adsl 3 Mega Flat navighi con la Supervelocita'
a soli 29.95 euro al mese, senza limiti di tempo. E se attivi
entro il 31 Marzo, 3 MESI sono GRATIS!
Scopri come su
http://abbonati.tiscali.it/adsl/sa/2flat_tc/