Compile example with VS8 - linker problem "xxxx already defined in msvprt.lib (MSVCP80.dll)"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compile example with VS8 - linker problem "xxxx already defined in msvprt.lib (MSVCP80.dll)"

Norman Fung-2
hello

After I finally managed to compile "QuantLib", I ran into another problem as I tried to compile example on EquityOption (http://quantlib.org/reference/examples.html)

I'm using Visual Studio 2005, project type is "WIN32 Console" with no MFC. Linker error is:

... many more ...
error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in msvcprt.lib(MSVCP80.dll)    QuantLib-vc80-mt-0_9_7.lib   
... many more "already defined" ...

I think another guy ran into same problem, for reference only:
   http://mlblog.osdir.com/finance.quantlib.user/2003-07/msg00036.shtml
   http://osdir.com/ml/finance.quantlib.devel/2005-02/msg00043.html

Any idea how to resolve this?

Thanks!

Norman

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

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users