Posted by
Eric Ehlers-2 on
Sep 08, 2008; 9:08am
URL: http://quantlib.414.s1.nabble.com/Re-Quantlib-users-Using-QuantLibXL-tp12270p12274.html
Hi Slava,
On Sat, September 6, 2008 19:21, Slava D wrote:
> Hi Eric.,
>
> thank you very much for your e-mail.
>
> I took everything via TortoiseSVN as you adviced in one of your e-mails.
>
> I also run vcredist.exe as some people recommend.
It's not necessary to run vcredist on a machine where Visual C++ is already
installed. It shouldn't do any harm either.
> I did full rebuild of everything (QuantLib, genXXX, and then
> QuantLibObjectHandler). For ObjectHandler I did with flag Using FAT 32
> workaround as Yes (as it is recommended on the net). Dependendwlaker still
> indicates that QuantLibObjectHandler is still missing msvcr80.dll (for the
> release mode) and msvcr80d.dll (for the debug mode). I have also checked
> that my manifest is looking for the dll-s above with the same version
> numbers as I have on my machine.
I don't entirely understand your comments above. There is no
QuantLibObjectHandler. QuantLibAddin contains a project called
QuantLibObjects. I wouldn't expect you to run Dependency Walker on that,
rather on the XLL.
Please try the following:
1) svn checkout from
https://quantlib.svn.sourceforge.net/svnroot/quantlib/trunk to
C:\projects\trunk
2) Start VC8
3) Open QuantLibXL\QuantLibXL_full_vc8.sln, select configuration Release, and
do Build | Build Solution.
4) Start Excel and load QuantLibXL\xll\QuantLibXL-vc80-mt-s-0_9_6.xll
Note that with configuration Release, the Microsoft C runtime is statically
linked into the XLL, so there is no runtime dependency on the MS DLLs.
> I plan to do a full rebuild somewhere Monday-Tuesday on a virgin machine
> with VS2008.
Sounds good. I think with the steps above you'll be just as well on your
existing machine.
Which version of Visual C++ are you using?
Visual C++ 2003 = VC7
Visual C++ 2005 = VC8
Visual C++ 2008 = VC9
Earlier you talk about msvcr80.dll which is VC8. Here you talk about VC9. If
you're switching to the newer compiler in an attempt to fix this problem, that
shouldn't be necessary though it shouldn't hurt either.
> I am going to use VS2008 with SP1. Do I need to run vsredist.exe before
> douing the full rebuild?
On the machine where Visual Studio is installed, it should not be necessary to
run vcredist at all.
If you copy the XLL to another computer:
- If the XLL was compiled with configuration Release, then it is not necessary
to install vcredist.
- If the XLL was compiled with configuration Release CRTDLL, then you need to
install vcredist.
I haven't tried SP1 for VC9. For VC8, the vcredist on the Microsoft website
corresponds to VC8 without SP1. When you install SP1 for VC8, you get new
vcredist files here:
C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe
C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\BootStrapper\Packages\vcredist_x64\vcredist_x64.exe
I think it may be the case that a binary compiled with VC8 no SP1 will crash
if executed with the vcredist from VC8+SP1, and vice versa. I have yet to
establish whether this is true of the Release CRTDLL build of QuantLibXL.
> did you take VS2008 with sp1, or just vs2008?
For VS2008, aka VC9, I just have the Express edition which I use only to test
that the build completes successfully. For my production work I use VC8+SP1.
> Thank you very much for your help again - it is nice to feel that I can ask
> somebody for an advice.
No problem, really. I'm pleased at the prospect that you may contribute back
to the Project but in any case we're always happy to help.
Regards,
Eric
-------------------------
Eric Ehlers
nazcatech sprl | Brussels |
http://www.nazcatech.beDistributed computing for pricing analytics - Use Microsoft Excel as a client
to the Grid
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev