RE: QuantLibXL, XLW problems: Not a valid add-In

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: QuantLibXL, XLW problems: Not a valid add-In

Aurelien Chanudet-2
Thanks to Sid for asking and thanks to nando for
answering. I seem to
remember that someone also suggested building
QuantLibXL as a static
library. How do I set up VC++ to build a static
library ?

Thanks,
Aurelien

> When Excel displays that message, it usually means
that one of the dll that
> your program relies on is missing from your system.

> This is happening in your case because your excel
add-in requires the latest
> runtime which you have linked to dynamically and the
other machine probably
> doesn"t have it (it comes with Visual Studio, so if
the other machine
> doesn"t have visual studio, most likely it doesn"t
have that version of the
> c runtime dll).

> In general, there is a free tool call Dependency
Walker at
> http://www.dependencywalker.com/. It shows you all
dll dependencies and
> shows you what"s missing.
> It"s useful for excel but also for a bunch of other situations!


       

       
               
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com


Reply | Threaded
Open this post in threaded view
|

Re: RE: QuantLibXL, XLW problems: Not a valid add-In

eric ehlers
Hi Aurelien,

On 6/16/05, Aurelien Chanudet <[hidden email]> wrote:
> I seem to
> remember that someone also suggested building
> QuantLibXL as a static
> library. How do I set up VC++ to build a static
> library ?

I think you want to know about building QuantLibXL as an XLL (i.e. a
DLL) which is linked statically rather than dynamically to the
run-time library (as opposed to building QuantLibXL as a static
library).

You can build a project as an
- executable
- static library
- DLL

Independently of that decision, you link your project to one of three
versions of the run-time library:
- single-threaded (static)
- multithreaded (static)
- multithreaded (DLL)

(Each of the three above is available as debug and release.)

To link to a static version of the run-time library - in VC6 you would
go to Project/Settings/C++/Code Generation, and under run-time library
choose single-threaded or multi-threaded, debug or release, as
appropriate.

The link below gives more info on the subject -

http://blogs.msdn.com/larryosterman/archive/2004/04/29/123090.aspx

Regards,
Eric