QuantlibXl

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

QuantlibXl

Marwan-2

Hi,

while compiling the QuantlibXl project, i get this message

.\buildStatic\vc80\Release\qladdin.obj : fatal error LNK1136: invalid or corrupt file

Is this familiar to anyone ?

 

thks

Marwan

Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
Hi Marwan,

On 8/25/06, Marwan <[hidden email]> wrote:
>
> Hi,
>
> while compiling the QuantlibXl project, i get this message
>
> .\buildStatic\vc80\Release\qladdin.obj : fatal error
> LNK1136: invalid or corrupt file
>
> Is this familiar to anyone ?

Please try either 1) deleting qladdin.obj and rebuilding or 2) a full rebuild.

I have seen the same error a couple of times.  IIRC some condition
isn't met - e.g. missing header file - and after fixing the problem
and resuming the build it appears that VC8 has produced an invalid
object file.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

Marwan-2

Hi everybody,

I tried the different hints you have provided. Unfortunately, it didn't worked.

Actually the qladdin.obj is always empty (0 Ko).

You may find below the output of VC8.

After the last message" Generating Code ..."

the compilator runs for hours. When i cancel the project and build it again, it says .\buildStatic\vc80\Release\qladdin.obj : fatal error>> LNK1136: invalid or

corrupt file

thank you for your help

 

 ------ Skipped Build: Project: gensrc, Configuration: All Win32 ------

Project not selected to build for this solution configuration

------ Skipped Build: Project: QuantLibObjects, Configuration: Release Win32 ------

Project not selected to build for this solution configuration

------ Build started: Project: QuantLibXL, Configuration: Release Win32 ------

Compiling...

volatilities.cpp

vanillaswap.cpp

utilities.cpp

termstructures.cpp

swaptionvolstructure.cpp

swaption.cpp

swap.cpp

shortratemodels.cpp

session.cpp

schedule.cpp

ratehelpers.cpp

randomsequencegenerator.cpp

qladdin.cpp

Linking to lib file: QuantLibObjects-vc80-mt-s-0_3_13.lib

Linking to lib file: ObjectHandler-xllib-vc80-mt-s-0_1_4.lib

XLL_STATIC is defined

COMPILING_XLL is defined

processes.cpp

pricingengines.cpp

prices.cpp

payoffs.cpp

options.cpp

optimization.cpp

mathf.cpp

Generating Code...

----- Original Message -----
From: "eric ehlers" <[hidden email]>
To: "Marwan" <[hidden email]>
Sent: Friday, August 25, 2006 3:58 PM
Subject: Re: [Quantlib-users] QuantlibXl

> Hi Marwan,

>
> On 8/25/06, Marwan <
[hidden email]> wrote:
>>
>> Hi,
>>
>> while compiling the QuantlibXl project, i get this message
>>
>> .\buildStatic\vc80\Release\qladdin.obj : fatal error
>> LNK1136: invalid or corrupt file
>>
>> Is this familiar to anyone ?
>
> Please try either 1) deleting qladdin.obj and rebuilding or 2) a full rebuild.
>
> I have seen the same error a couple of times.  IIRC some condition
> isn't met - e.g. missing header file - and after fixing the problem
> and resuming the build it appears that VC8 has produced an invalid
> object file.
>
> Regards,
> Eric
>
>
Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
Hello,

On 8/25/06, Marwan <[hidden email]> wrote:
>
> After the last message" Generating Code ..."
>
> the compilator runs for hours.

I now see the same problem.  This didn't occur during the development
of 0.3.13 and I believe the problem relates to a change introduced
shortly before the release was packaged, I'm investigating and will
get back to you.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

Marwan-2
Hi,

thanks Eric for your help.
In a certain sense i am happy to understand that it wasn't my fault ( since
i have followed with extreme care all the steps contained in the tutorial).
By the way, when i first compiled QuantlibXL, it returns that a regex
library from Boost was not available, even if i had already compiled boost
using bjam. So i decided to compile the regex project using nmake ... and it
worked. So i think you may add a paragraph on this topic  in the tutorial( I
think that something similar happen for the Quantlib TestSuite).

Regards

Marwan

----- Original Message -----
From: "eric ehlers" <[hidden email]>
To: "Marwan" <[hidden email]>
Cc: <[hidden email]>
Sent: Saturday, August 26, 2006 3:50 PM
Subject: Re: [Quantlib-users] QuantliXl


> Hello,
>
> On 8/25/06, Marwan <[hidden email]> wrote:
>>
>> After the last message" Generating Code ..."
>>
>> the compilator runs for hours.
>
> I now see the same problem.  This didn't occur during the development
> of 0.3.13 and I believe the problem relates to a change introduced
> shortly before the release was packaged, I'm investigating and will
> get back to you.
>
> Regards,
> Eric
>
>




Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
In reply to this post by Marwan-2
Hi Marwan,

On 8/25/06, Marwan <[hidden email]> wrote:
>
> Hi everybody,
>
> the compilator runs for hours.

I believe I've found a fix (of sorts) for this issue and I'd be
grateful if you could confirm whether it works for you.

Please disable optimization for QuantLibXL - under Properties,
Configuration Properties, C/C++, Optimization, set Optimization to
Disabled.

Hopefully you will now find that the build runs many times faster.
Obviously the compiled XLL will suffer poorer performance, but this
approach may be necessary for you and others who report that the build
takes many hours, or hangs altogether, on slower hardware.

If the fix works for you I'll document it on the website.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
Hello,

On 8/28/06, Marwan <[hidden email]> wrote:
> Ok , Eric i recompiled log4cxx_vc8 by setting the langage No (/Zc:wchar_t-)
> to No (/Zc:wchar_t-) and i did it also for the QuantlibXl project and it
> worked.

Great.  As mentioned last time this came up ...

http://sourceforge.net/mailarchive/forum.php?thread_id=10923995&forum_id=4299

... it's not clear why that fix is necessary, if you have some time to
investigate it would be a big help.

> Thanks. But why is it so for the optimization options ( with my computer
> endowed with an Intel Centrino processor ) ?

Good question.  There are a lot of problems with the QLXL build -
inclusion of unneeded header files, inefficient linking and compiler
flags - and an item on my to do list for 0.3.14 is to clean all that
up.  For now I can't say exactly what's wrong - a combination of many
things - and disabling optimization is just a crude way of achieving a
quick fix.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
In reply to this post by Marwan-2
Hi Marwan,

On 8/26/06, Marwan <[hidden email]> wrote:
> By the way, when i first compiled QuantlibXL, it returns that a regex
> library from Boost was not available, even if i had already compiled boost
> using bjam.

regex is required by QuantLibAddin but is not included in the default
boost command line build, you have to request it explicitly -

C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" "--with-regex" install

- I've updated the docs with that and also with the other changes we
discussed - thanks for your feedback.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

Ferdinando M. Ametrano-3
Hi all

On 8/29/06, eric ehlers <[hidden email]> wrote:
> regex is required by QuantLibAddin but is not included in the default
> boost command line build, you have to request it explicitly -
>
> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" "--with-regex" install

this puzzles me as my collegues and I never had this problem... regex
was build with
> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" install

ciao -- Nando


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

Marwan-2

Hi all,

i apologize since as Ferdinando pointed out, using

C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" install

is suffisant to compile correctly Boost as soon as the environment where you are compiling is properly set. It was not the case for me.

So i didn't compiled boost inside the regular cmd windows but instead using the Microsoft Plateform SDK Build Environment :Set Windows XP 32-bit Build Environment (Retail) where all the environment variable are properly set.

 

Regards

 

Marwan

----- Original Message -----
From: "Ferdinando Ametrano" <[hidden email]>
To: "eric ehlers" <[hidden email]>
Cc: "Marwan" <[hidden email]>; <[hidden email]>
Sent: Tuesday, August 29, 2006 12:17 PM
Subject: Re: [Quantlib-users] QuantlibXl

> Hi all

>
> On 8/29/06, eric ehlers <
[hidden email]> wrote:
>> regex is required by QuantLibAddin but is not included in the default
>> boost command line build, you have to request it explicitly -
>>
>> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" "--with-regex" install
>
> this puzzles me as my collegues and I never had this problem... regex
> was build with
>> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" install
>
> ciao -- Nando
>
>
Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

surajbansi.kumar
In reply to this post by Marwan-2
Hi All,

Even I am facing problem.
I am using Bloodshed C++, mingw compiler.
bjam "-sTOOLS=mingm" install    is not working for me


At last I will get following message
..........................
...............
 _wave-mgw-mt-1_33_1.lib...
....failed updating 1212 targets...
....skipped 426 targets...
....updated 148 targets...




Any suggestings?

Thanks and Regards,

SURAJ BANSI KUMAR



|---------+-------------------------------------------->
|         |           "Marwan"                         |
|         |           <[hidden email]>       |
|         |           Sent by:                         |
|         |           [hidden email]|
|         |           ceforge.net                      |
|         |                                            |
|         |                                            |
|         |           09/05/2006 01:27 AM              |
|         |                                            |
|---------+-------------------------------------------->
  >-----------------------------------------------------------------------------------------------|
  |                                                                                               |
  |        To:      "Ferdinando Ametrano" <[hidden email]>                                    |
  |        cc:      [hidden email], (bcc: surajbansi.kumar/Polaris)         |
  |        Subject: Re: [Quantlib-users] QuantlibXl                                               |
  >-----------------------------------------------------------------------------------------------|




Hi all,


i apologize since as Ferdinando pointed out, using


C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" install


is suffisant to compile correctly Boost as soon as the environment where
you are compiling is properly set. It was not the case for me.


So i didn't compiled boost inside the regular cmd windows but instead using
the Microsoft Plateform SDK Build Environment :Set Windows XP 32-bit Build
Environment (Retail) where all the environment variable are properly set.





Regards





Marwan


----- Original Message -----
From: "Ferdinando Ametrano" <[hidden email]>
To: "eric ehlers" <[hidden email]>
Cc: "Marwan" <[hidden email]>; <
[hidden email]>
Sent: Tuesday, August 29, 2006 12:17 PM
Subject: Re: [Quantlib-users] QuantlibXl

> Hi all
>
> On 8/29/06, eric ehlers <[hidden email]> wrote:
>> regex is required by QuantLibAddin but is not included in the default
>> boost command line build, you have to request it explicitly -
>>
>> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" "--with-regex" install
>
> this puzzles me as my collegues and I never had this problem... regex
> was build with
>> C:\Projects\boost_1_33_1>bjam "-sTOOLS=vc-8_0" install
>
> ciao -- Nando
>
>-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

eric ehlers
Hello

On 9/5/06, [hidden email]
<[hidden email]> wrote:
> Hi All,
>
> Even I am facing problem.
> I am using Bloodshed C++, mingw compiler.
> bjam "-sTOOLS=mingm" install    is not working for me

That should be...
bjam "-sTOOLS=mingw" install
... I don' t know if the typo was in your original command or just in
your email.

Also, the only build environments supported by QuantLibXL are VC 7 and
8.  Building QLXL with mingw might be possible but would require a lot
of work on your part to set up makefiles.  If you're just building
boost / QuantLib you should be OK.

Regards,
Eric


Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

Luigi Ballabio
In reply to this post by surajbansi.kumar

On Sep 5, 2006, at 5:53 AM, [hidden email] wrote:

> Even I am facing problem.
> I am using Bloodshed C++, mingw compiler.
> bjam "-sTOOLS=mingm" install    is not working for me
>
>
> At last I will get following message
> ..........................
> ...............
>  _wave-mgw-mt-1_33_1.lib...
> ....failed updating 1212 targets...
> ....skipped 426 targets...
> ....updated 148 targets...

Does it compile anything? It might be normal that some libraries are
not built on some platforms. More to the point, does it compile the
unit-test library?

Luigi



Reply | Threaded
Open this post in threaded view
|

Re: QuantlibXl

surajbansi.kumar
In reply to this post by Marwan-2

No Luigi,

No library created. Only c:\boost\lib directory structure got created.

But every thing is working on linux. boost as well as Quantlib.

Thanks and Regards,

SURAJ BANSI KUMAR



                                                                                                                                       
                      Luigi Ballabio                                                                                                  
                      <luigi.ballabio@         To:      [hidden email]                                                
                      gmail.com>               cc:      [hidden email], "Marwan" <[hidden email]>      
                                               Subject: Re: [Quantlib-users] QuantlibXl                                                
                      09/05/2006 09:39                                                                                                
                      PM                                                                                                              
                                                                                                                                       
                                                                                                                                       





On Sep 5, 2006, at 5:53 AM, [hidden email] wrote:

> Even I am facing problem.
> I am using Bloodshed C++, mingw compiler.
> bjam "-sTOOLS=mingm" install    is not working for me
>
>
> At last I will get following message
> ..........................
> ...............
>  _wave-mgw-mt-1_33_1.lib...
> ....failed updating 1212 targets...
> ....skipped 426 targets...
> ....updated 148 targets...

Does it compile anything? It might be normal that some libraries are
not built on some platforms. More to the point, does it compile the
unit-test library?

Luigi



This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in