Login  Register

Re: Problem Compiling Quantlib addin

Posted by eric ehlers on May 29, 2006; 6:53am
URL: http://quantlib.414.s1.nabble.com/Problem-Compiling-Quantlib-addin-tp4811p4813.html

Hi Nicola, Hi Jerry,

On my machine this works automatically with no need to change code or
project settings.  The setting

"C/C++ -> Language -> Treat wchar_t as Built-In Type"

defaults to no which corresponds to compiler flag /Zc:wchar_t- and
results in a dependency on comsupp.lib (release build) or comsuppd.lib
(debug build)

Changing the setting to yes corresponds to compiler flag /Zc:wchar_t
and results in a dependency on comsuppw.lib (release build) or
comsuppwd.lib (debug build)

I have VC Express installed on one machine and VC8 Pro installed on
another, in both cases all four flavors of the lib mentioned above
reside in folder
    "C:\Program Files\Microsoft Visual Studio 8\VC\lib"
which is specified to the compiler as "$(VCInstallDir)lib" under
    "Tools -> Options -> Projects and Solutions -> VC++ Directories ->
Library files"

Looks like your installations of VC8 differ from mine - either you
picked up a different version of VC8 or you did something different
during the installation - such that comsupp.lib/comsuppd.lib aren't
being picked up automatically.  Changing the value of the flag causes
you instead to depend on comsuppw.lib/comsuppwd.lib which for whatever
reason do get picked up automatically.  If that fix works for you I
see no harm in it, alternatively you could use the information above
to troubleshoot why the default build isn't working correctly.

Regards,
Eric