Re: Object Handler linking problem

Posted by eric ehlers on
URL: http://quantlib.414.s1.nabble.com/Compiler-poll-tp3647p3650.html

Hi Luca

> Hi
>
> have a problem when linking my own project (an XLL using XLW to interface
> with Excel) with the ObjectHandler library files. I'm using Visual C++ 7.1
> (.net 2003).
> Please note that when compiling my project in the debug mode everything works
> fine, but when I compile in the release mode I get the error message below.

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"
2) Build the corresponding configuration of ObjectHandler.  In this
example you'd build ObjectHandler configuration "Win32 Release
SingleThread" which uses runtime library "Single-Threaded"
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
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)

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.

Many Thanks
Eric