Re: puzzel: cannot open file 'QuantLib-vc90-mt-sgd-0_9_7.lib'

Posted by Yan Kuang on
URL: http://quantlib.414.s1.nabble.com/puzzel-cannot-open-file-QuantLib-vc90-mt-sgd-0-9-7-lib-tp7930p7932.html


My intention is to write a C library wrapping Quantlib time/date function. The library will be statically linked,
means the lib will be independent of Quantlib when built.  In other word, when other program can use the lib
independent of Quantlib.

Is it possible?

Many thanks,

Yan    
 


Ferdinando Ametrano <[hidden email]>
Sent by: [hidden email]

21/08/2009 06:33 PM

To
Yan Kuang <[hidden email]>
cc
[hidden email]
Subject
Re: [Quantlib-users] puzzel: cannot open file 'QuantLib-vc90-mt-sgd-0_9_7.lib'





On Fri, Aug 21, 2009 at 9:33 AM, Yan Kuang <[hidden email]> wrote:
> 1. I built quantlib, 'QuantLib-vc90-mt-sgd-0_9_7.lib' is in the lib directory.
> 2. I build static library libCrr.lib with essentially two files:
> [...]
> The xllCrr's link failed: cannot open file 'QuantLib-vc90-mt-sgd-0_9_7.lib'
>
> I don't see why xllCrr need to link with QuantLib-vc90-mt-sgd-0_9_7.lib.

in order to use QuantLib features required by your files

> Isn't everything quantlib is in libCrr.lib I built?
no, it isn't

> How does xllCrr  know there is a lib called QuantLib-vc90-mt-sgd-0_9_7.lib
through auto-linking.
Auto-linking is a mechanism for automatically determining which
libraries to link to while building a C or C++ program. It is
activated by means of #pragma comment(lib, <name>) statements in the
header files of the library, ql/autolink.hpp in the QuantLib case

hope it helps

ciao -- Nando


Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.

This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users