Posted by
Jens Thiel on
Feb 06, 2003; 10:34am
URL: http://quantlib.414.s1.nabble.com/Jens-Thiel-s-IDL-example-tp2393p2394.html
Hi Deming,
> d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189:
> #error : Set 'Debug Multithreaded DLL' under C/C++ | Code Generation
this really doesn't belong here, but you were trapped by Nando's liking ;-)
for "Multithreaded DLL" setting. Either you comment out the #ifdef queries
in config.msvc.h, or you change your project settings to "[Debug|Release]
Multithreaded DLL". The difference is in how MSVC builds the final DLL:
"Multithreaded DLL" tells the linker to use the shared DLLs; this means that
you you have to deploy them to the users with your add-in. This setting
allows multiple programs to share some code if they use exaclty the same
DLLs in the same locations.
"Multithreded" alone means that the MSVC library code is compiled into your
add-in, and you can use it without shipping any additional DLLs. The add-in
will be slightly larger though.
You can see the difference if you look at the shared library dependencies of
the resulting DLL.
Follow-ups to the xlw mailing list or private, please.
Jens.
> -----Ursprüngliche Nachricht-----
> Von:
[hidden email]
> [mailto:
[hidden email]]Im Auftrag von
> Zhuang, Deming
> Gesendet: Donnerstag, 6. Februar 2003 16:08
> An:
[hidden email]
> Betreff: [Quantlib-users] Jens Thiel's IDL example
>
>
> Hi:
>
> After reading the posts from this group yesterday, I tried Jens
> Thiel's step-by-step instructions on using libXLL to build excel
> add-in. However, I ran into a problem with the code in
> xlw\config.msvc.h. The errors messages are attached. I am
> wondering if any of you have seen this before and have any idea
> how to fix it.
>
> thanks very much for your time.
>
> Deming
>
> --------------------Configuration: myExample - Win32
> Debug--------------------
> Creating Type Library...
> Processing D:\libXLL\myExample\myExample.idl
> myExample.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
> oaidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\objidl.idl
> objidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\unknwn.idl
> unknwn.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\wtypes.idl
> wtypes.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ocidl.idl
> ocidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\oleidl.idl
> oleidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\servprov.idl
> servprov.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\urlmon.idl
> urlmon.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
> msxml.idl
> Compiling...
> myExample.cpp
> d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189:
> #error : Set 'Debug Multithreaded DLL' under C/C++ | Code Generation
> Error executing cl.exe.
>
> myExample.dll - 1 error(s), 0 warning(s)
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See!
>
http://www.vasoftware.com> _______________________________________________
> Quantlib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users>
>