boost 1.36 and the forthcoming release of QLXL 0.96

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

boost 1.36 and the forthcoming release of QLXL 0.96

Ferdinando M. Ametrano-3
Hi Eric,

I've switched today to boost 1.36 and noticed that while QL 0.96 has
no problem with it, this is not the case for OH 0.96:

error C2039: 'has_branch_path' : is not a member of
'boost::filesystem::basic_path<String,Traits>' c:\Projects\DevEnv\R000905-branch\ObjectHandler\oh\logger.cpp 82
warning C4251: 'ObjectHandler::ProcessorFactory::processorMap_' :
class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by
clients of class
'ObjectHandler::ProcessorFactory' c:\Projects\DevEnv\R000905-branch\ObjectHandler\oh\processor.hpp 107
error C2039: 'has_branch_path' : is not a member of
'boost::filesystem::basic_path<String,Traits>' c:\Projects\DevEnv\R000905-branch\ObjectHandler\oh\serializationfactory.cpp 135

probably "has_branch_path" has been replaced with a similar method,
but I didn't have time to check. Any clue from anyone? Would be nice
to have a patch that would work with both 1.35 and 1.36

BTW what compiler do you (plan to) use for the binaries to be
distributed with QLXL? I'm currently using VC8 SP1, just because the
runtime libraries of VC9 are missing from the default configuration of
most of the (non-developer) workstation I work with (XP SP2; it might
be the case those dlls are available in XP SP3, I'm not sure. Again:
any clue from anyone?). Of course this is not relevant if we
distribute the static xll.

ciao -- Nando

-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: boost 1.36 and the forthcoming release of QLXL 0.96

Luigi Ballabio
On Tue, 2008-08-19 at 19:12 +0200, Ferdinando Ametrano wrote:
> I'm currently using VC8 SP1, just because the
> runtime libraries of VC9 are missing from the default configuration of
> most of the (non-developer) workstation I work with (XP SP2; it might
> be the case those dlls are available in XP SP3, I'm not sure. Again:
> any clue from anyone?).

You need to talk to your IT crew and install on those workstations the
free redistributable package:
<http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en>
(there's also service packs at
<http://msdn.microsoft.com/en-us/visualc/aa336402.aspx>; check what you
need.)

Luigi


--

Don't say "yes" until I finish talking.
-- Darryl F. Zanuck



-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: boost 1.36 and the forthcoming release of QLXL 0.96

Ferdinando M. Ametrano-3
On Wed, Aug 20, 2008 at 9:57 AM, Luigi Ballabio
<[hidden email]> wrote:
> You need to talk to your IT crew and install on those workstations the
> free redistributable package:
> <http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en>
> (there's also service packs at
> <http://msdn.microsoft.com/en-us/visualc/aa336402.aspx>; check what you
> need.)

thank you Luigi, I did know about the VC9 free redistributable
package, but I missed its SP1 version.

Anyway my point is that I didn't have to distribute the equivalent
package for VC8, so it must be included in XP SP2 or .Net Framework
2.0
I wonder if the VC9 package is included in XP SP3 and/or .Net
Framework 3.5, in which I'll probably just wait for wider adoption of
them.

ciao -- Nando

-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: boost 1.36 and the forthcoming release of QLXL 0.96

Ferdinando M. Ametrano-3
In reply to this post by Ferdinando M. Ametrano-3
ok, so we're now only left with

> warning C4251: 'ObjectHandler::ProcessorFactory::processorMap_' :
> class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by
> clients of class
> 'ObjectHandler::ProcessorFactory'       c:\Projects\DevEnv\R000905-branch\ObjectHandler\oh\processor.hpp        107

the Help clarify:
> To minimize the possibility of data corruption when exporting a class with __declspec(dllexport), ensure that:
>
> All your static data is access through functions that are exported from the DLL.

but since I'm not familiar with that code I'll leave this one to Eric
or anyone knowledgeable about it.

ciao -- Nando

-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: boost 1.36 and the forthcoming release of QLXL 0.96

Eric Ehlers-2
In reply to this post by Ferdinando M. Ametrano-3
Hi Nando,

On Tue, August 19, 2008 18:12, Ferdinando Ametrano wrote:
> Hi Eric,
>
> I've switched today to boost 1.36 and noticed that while QL 0.96 has no
problem with it, this is not the case for OH 0.96:

OK I see you and Kim Kuen Tang just fixed that one on R000905-branch.  The
same fix was created in branch oh_functions courtesy of our colleague Sun Quan
aka June with some feedback from the eagle eyed Luigi.  I'll delete branch
oh_functions and the fix will appear on the trunk when I merge the
R000905-branch.

> ok, so we're now only left with
>
>> warning C4251: 'ObjectHandler::ProcessorFactory::processorMap_' : class
'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of
class
>> 'ObjectHandler::ProcessorFactory'
>> c:\Projects\DevEnv\R000905-branch\ObjectHandler\oh\processor.hpp        107

Class Repository already employs a workaround to allow std::map in a DLL,
we'll invesitgate whether the the same fix can be used for ProcessorFactory.

> BTW what compiler do you (plan to) use for the binaries to be
> distributed with QLXL? I'm currently using VC8 SP1, just because the runtime
libraries of VC9 are missing from the default configuration of most of the
(non-developer) workstation I work with (XP SP2; it might be the case those
dlls are available in XP SP3, I'm not sure. Again: any clue from anyone?). Of
course this is not relevant if we
> distribute the static xll.

The binary QLXL release is compiled with /MT so there is no issue with run
time dependencies.  On my machine I have
1) VC8 Standard + SP1
2) VC9 Express
I'm not aware of any reason to favor one over the other for the binary release
and am planning to use 1).

For other purposes I use the dynamically linked XLLs which require /MD and in
that case I use 1) just because the run time DLLs are more widely distributed,
though in any case if they're missing you can use the relevant vcredist
package as Luigi pointed out.

Regards,
Eric

-------------------------
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
Distributed 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