>Luca,
> if you #define BOOST_LIB_DIAGNOSTIC (either by adding it to your
>project configuration or by adding a #define before including the
>ObjectHandler headers) you should get a message from the compiler tellin=
g
>
>you which library it's trying to link. This might help diagnose the
>problem...
Just did it, but unfortunately I can't see any useful information in the
new output message.
This is what I get (please note that the linking section has not been mod=
ified):
------ Build started: Project: xlProfiloLibWS, Configuration: Release Win=
32
------
Compiling...
objectContainer.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking to lib file: ObjectHandler-vc71-mt-0_1_0.lib
longstaffSchwarz.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
i_inflationleg.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
i_creditinstrument.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
i_setting.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
i_distribution.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
latticeFunctions.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking to lib file: ObjectHandler-vc71-mt-0_1_0.lib
hullWhiteTree.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking to lib file: ObjectHandler-vc71-mt-0_1_0.lib
discretizedBermudaSwaption.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking to lib file: ObjectHandler-vc71-mt-0_1_0.lib
lmmMontecarloSimulate.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
CMSpricingEngine.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
generalintegral.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
LHPmodel.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
singlecurveonefactormodel.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
multicurveonefactormodel.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
xlwObjectHandler.cpp
c:\Programmi\XLW\xlw\XlfExcel.inl(95) : warning C4244: 'argument' : conve=
rsion
from 'double' to 'size_t', possible loss of data
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking to lib file: ObjectHandler-vc71-mt-0_1_0.lib
xlwInterface.cpp
c:\Programmi\XLW\xlw\XlfExcel.inl(95) : warning C4244: 'argument' : conve=
rsion
from 'double' to 'size_t', possible loss of data
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
mkdata.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
checkFunction.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
MonteCarloSimulate.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
cpicapfloor.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
cmsInstruments.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
settableCoupon.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
cdocoupon.cpp
Linking to lib file: QuantLib-vc71-mt-0_3_8.lib
Linking...
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
unsigned int __thiscall std::basic_string<char,struct std::char_traits<ch=
ar>,class
std::allocator<char> >::size(void)const " (?size@..._=
traits@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
static char * __cdecl std::char_traits<char>::copy(char *,char const *,un=
signed
int)" (?copy@...) already defined in msvc=
prt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "prot=
ected:
__thiscall std::_String_val<char,class std::allocator<char> >::_String_va=
l<char,class
std::allocator<char> >(class std::allocator<char>)" (??0?$_String_val@...?=
$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
unsigned int __thiscall std::basic_string<char,struct std::char_traits<ch=
ar>,class
std::allocator<char> >::max_size(void)const " (?max_size@...=
U?$char_traits@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "prot=
ected:
void __thiscall std::basic_string<char,struct std::char_traits<char>,clas=
s
std::allocator<char> >::_Tidy(bool,unsigned int)" (?_Tidy@...@=
DU?$char_traits@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
class std::basic_string<char,struct std::char_traits<char>,class std::all=
ocator<char>
> & __thiscall std::basic_string<char,struct std::char_traits<char>,class=
std::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@...=
_string@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::~basic_string<char,struct std::char_traits<char>,class std::allocator<=
char>
>(void)" (??1?$basic_string@...@=
@QAE@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::basic_string<char,struct std::char_traits<char>,class std::allocator<c=
har>
>(class std::basic_string<char,struct std::char_traits<char>,class std::a=
llocator<char>
> const &)" (??0?$basic_string@...=
td@...)
already defined in msvcprt.lib(MSVCP71.dll)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : error LNK2005: "publ=
ic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::basic_string<char,struct std::char_traits<char>,class std::allocator<c=
har>
>(char const *)" (??0?$basic_string@...=
@2@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: __thiscall std::basic_st=
ring<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,st=
ruct
std::char_traits<char>,class std::allocator<char> >(class std::basic_stri=
ng<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic=
_string@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: __thiscall std::basic_st=
ring<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,st=
ruct
std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$=
basic_string@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: __thiscall std::basic_st=
ring<char,struct
std::char_traits<char>,class std::allocator<char> >::~basic_string<char,s=
truct
std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_st=
ring@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::c_str(void)const " (?c_str@...=
locator@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: static char * __cdecl st=
d::char_traits<char>::copy(char
*,char const *,unsigned int)" (?copy@...)=
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::size(void)const " (?size@...=
cator@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "protected: void __thiscall std::=
basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Tidy(bool,unsigned
int)" (?_Tidy@...=
@@IAEX_NI@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "protected: __thiscall std::_Stri=
ng_val<char,class
std::allocator<char> >::_String_val<char,class std::allocator<char> >(cla=
ss
std::allocator<char>)" (??0?$_String_val@...=
?$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: class std::basic_string<=
char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall std::bas=
ic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,u=
nsigned
int)" (?erase@...=
@@QAEAAV12@...)
already defined in msvcprt.lib(MSVCP71.dll)
libcpd.lib(string.obj) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::max_size(void)const " (?max_size@...@=
@V?$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "bool __cdecl std::operator<<ch=
ar,struct
std::char_traits<char>,class std::allocator<char> >(class std::basic_stri=
ng<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class std::ba=
sic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (??$?MDU?$c=
har_traits@...=
raits@...)
already defined in ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj)
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
unsigned int __thiscall std::basic_string<char,struct std::char_traits<ch=
ar>,class
std::allocator<char> >::size(void)const " (?size@..._=
traits@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
static char * __cdecl std::char_traits<char>::copy(char *,char const *,un=
signed
int)" (?copy@...) already defined in msvc=
prt.lib(MSVCP71.dll);
second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pr=
otected:
__thiscall std::_String_val<char,class std::allocator<char> >::_String_va=
l<char,class
std::allocator<char> >(class std::allocator<char>)" (??0?$_String_val@...?=
$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
unsigned int __thiscall std::basic_string<char,struct std::char_traits<ch=
ar>,class
std::allocator<char> >::max_size(void)const " (?max_size@...=
U?$char_traits@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pr=
otected:
void __thiscall std::basic_string<char,struct std::char_traits<char>,clas=
s
std::allocator<char> >::_Tidy(bool,unsigned int)" (?_Tidy@...@=
DU?$char_traits@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
class std::basic_string<char,struct std::char_traits<char>,class std::all=
ocator<char>
> & __thiscall std::basic_string<char,struct std::char_traits<char>,class=
std::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@...=
_string@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::~basic_string<char,struct std::char_traits<char>,class std::allocator<=
char>
>(void)" (??1?$basic_string@...@=
@QAE@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::basic_string<char,struct std::char_traits<char>,class std::allocator<c=
har>
>(class std::basic_string<char,struct std::char_traits<char>,class std::a=
llocator<char>
> const &)" (??0?$basic_string@...=
td@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj) : warning LNK4006: "pu=
blic:
__thiscall std::basic_string<char,struct std::char_traits<char>,class std=
::allocator<char>
>::basic_string<char,struct std::char_traits<char>,class std::allocator<c=
har>
>(char const *)" (??0?$basic_string@...=
@2@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: __thiscall std::basic_=
string<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,st=
ruct
std::char_traits<char>,class std::allocator<char> >(class std::basic_stri=
ng<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic=
_string@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: __thiscall std::basic_=
string<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,st=
ruct
std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$=
basic_string@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: __thiscall std::basic_=
string<char,struct
std::char_traits<char>,class std::allocator<char> >::~basic_string<char,s=
truct
std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_st=
ring@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: char const * __thiscal=
l
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::c_str(void)const " (?c_str@...=
locator@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: static char * __cdecl
std::char_traits<char>::copy(char *,char const *,unsigned int)" (?copy@?$=
char_traits@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: unsigned int __thiscal=
l
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::size(void)const " (?size@...=
cator@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "protected: void __thiscall std=
::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Tidy(bool,unsigned
int)" (?_Tidy@...=
@@IAEX_NI@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "protected: __thiscall std::_St=
ring_val<char,class
std::allocator<char> >::_String_val<char,class std::allocator<char> >(cla=
ss
std::allocator<char>)" (??0?$_String_val@...=
?$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: class std::basic_strin=
g<char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall std::bas=
ic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,u=
nsigned
int)" (?erase@...=
@@QAEAAV12@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
libcpd.lib(string.obj) : warning LNK4006: "public: unsigned int __thiscal=
l
std::basic_string<char,struct std::char_traits<char>,class std::allocator=
<char>
>::max_size(void)const " (?max_size@...@=
@V?$allocator@...)
already defined in msvcprt.lib(MSVCP71.dll); second definition ignored
msvcprt.lib(MSVCP71.dll) : warning LNK4006: "bool __cdecl std::operator<<=
char,struct
std::char_traits<char>,class std::allocator<char> >(class std::basic_stri=
ng<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class std::ba=
sic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (??$?MDU?$c=
har_traits@...=
raits@...)
already defined in ObjectHandler-vc71-mt-0_1_0.lib(objecthandler.obj); se=
cond
definition ignored
Creating library .\Release/xlProfiloLib.lib and object .\Release/xlPro=
filoLib.exp
MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcd.lib' confli=
cts
with use of other libs; use /NODEFAULTLIB:library
mStrikeTreeSwaption.obj : error LNK2001: unresolved external symbol "publ=
ic:
virtual void __thiscall QuantLib::Lattice::discountTo(class QuantLib::Dis=
cretizedAsset
&,double)const " (?discountTo@...=
@N@...)
Debug/xlProfiloLib.xll : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Dati\ProfiloLib\xlProfiloLibWS_Net\Rele=
ase\BuildLog.htm"
xlProfiloLibWS - 22 error(s), 23 warning(s)
__________________________________________________________________
Tiscali Adsl 3 Mega Flat con 3 MESI GRATIS!
Con Tiscali Adsl 3 Mega Flat navighi con la Supervelocita'
a soli 29.95 euro al mese, senza limiti di tempo. E se attivi
entro il 31 Marzo, 3 MESI sono GRATIS!
Scopri come su http://abbonati.tiscali.it/adsl/sa/2flat_tc/
|