PiecewiseFlatForward symbols and Linking to QuantLib

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

PiecewiseFlatForward symbols and Linking to QuantLib

Keith Weintraub
Folks,

 

   I get the following message when I build QuantLib in Visual C++ 2005
Express Edition:

 

1>piecewiseflatforward.obj : warning LNK4221: no public symbols found;
archive member will be inaccessible

 

Reply | Threaded
Open this post in threaded view
|

Re: PiecewiseFlatForward symbols and Linking to QuantLib

Luigi Ballabio
On 12/01/2005 03:36:18 PM, Keith Weintraub wrote:
>    I get the following message when I build QuantLib in Visual C++
> 2005 Express Edition:
>
> 1>piecewiseflatforward.obj : warning LNK4221: no public symbols  
> found; archive member will be inaccessible

Yes. For VC8, piecewiseflatforward.cpp is an empty file. You can safely  
ignore the warning.


> I have the following two problems/issues:
>
> * Debugging problems stepping into my code that uses
> PiecewiseFlatForward.
>
> * Linker errors when linking my code
>
> 1>QuantLib-vc80-mt-sgd-0_3_11.lib(jointcalendar.obj) : warning
> LNK4204:
> 'u:\C++\aql2\sln\RiskFramework\Debug\quantlib-vc80-mt-gd-0_3_11.pdb'
> is missing debugging information for referencing module; linking  
> object as if no debug info
>
> My questions are:
> * Are these two issues related?

Probably (but not related to the empty file thing.)

> * Are either one of these problems due to settings in my build
> of QuantLib or in the build of my own code.

Looking at the above error, it seems kind of strange to me that you're  
using gd and sgd files together (the various characters refer to  
configuration options.) You might want to make sure that your program  
and the libraries are built with the same settings, especially with  
respect to runtime libraries (single-threaded vs multi-threaded vs  
multi-threaded DLL.)

Later,
        Luigi


----------------------------------------

The young man knows the rules, but the old man knows the exceptions.
-- O. W. Holmes