Hi, i'm using quantlib-0.8.1, under Visual Studio 2005, Windows XP
Professional 2002, Service pack 2. The example files ---e.g., /examples/equityoption/equityoption_vc8.vcproj--run fine. In trying to customize, i have created separate programs by adapting code from /testsuite [by keeping desired functions and adding a main], created a new project [e.g., by copying and editing \examples\equityoption\equityoption_vc8.vcproj to change the project name, source files]. E.g., i have done this /testsuite/varswap.cpp; which seems to require /testsuite/utilities.cpp, so i include that also as a source file in the project. When i "build" this project, it gives me the following message: Linking... MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library. But the build succeeds. When i try to run the program, it never starts---i get the message: "The application has failed to start because MSVCR80.dll was not found. " As far as I can tell, the problem appears to be related to something in /testsuite/utilities.cpp. HOWEVER: I do not have this problem at all on my laptop. Identical Quantlib installation; also running windows XP, but unfortunately don't have the full OS details right now. any help, suggestions would be greatly appreciated. Glad to supply additional info, run additional diagnostics, etc. thanks -------------------------------------------- P.C. Venkatesh Office of Prudential Supervision & Risk Analysis Division of Trading and Markets, SEC Station Place, 100 F Street, N.E., Washington, D.C. 20549 e-mail: [hidden email] vox: 202 551 5549 fax: 202 772-9273 . ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi
as documented on http://quantlib.org/reference/usage.html "Your project must be compiled with the same options that were used in compiling the QuantLib library you're linking with". Your problem is mixing different C runtime library settings. hope it helps ciao -- Nando On Jan 8, 2008 7:02 PM, Venkatesh, P.C. <[hidden email]> wrote: > Hi, i'm using quantlib-0.8.1, under Visual Studio 2005, Windows XP > Professional 2002, Service pack 2. > > The example files ---e.g., > /examples/equityoption/equityoption_vc8.vcproj--run fine. > > In trying to customize, i have created separate programs by adapting > code from /testsuite [by keeping desired functions and adding a main], > created a new project [e.g., by copying and editing > \examples\equityoption\equityoption_vc8.vcproj to change the project > name, source files]. E.g., i have done this /testsuite/varswap.cpp; > which seems to require /testsuite/utilities.cpp, so i include that also > as a source file in the project. > > When i "build" this project, it gives me the following message: > Linking... > MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' > conflicts with use of other libs; use /NODEFAULTLIB:library. > But the build succeeds. > When i try to run the program, it never starts---i get the message: > > "The application has failed to start because MSVCR80.dll was not found. > " > > As far as I can tell, the problem appears to be related to something in > /testsuite/utilities.cpp. > > HOWEVER: I do not have this problem at all on my laptop. Identical > Quantlib installation; also running windows XP, but unfortunately don't > have the full OS details right now. > > any help, suggestions would be greatly appreciated. Glad to supply > additional info, run additional diagnostics, etc. > thanks > > -------------------------------------------- > P.C. Venkatesh > Office of Prudential Supervision & Risk Analysis > Division of Trading and Markets, SEC > Station Place, 100 F Street, N.E., Washington, D.C. 20549 > > e-mail: [hidden email] > vox: 202 551 5549 > fax: 202 772-9273 . > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |