fatal error LNK1104: cannot open file 'QuantLib-vc80-mt-0_9_7.lib'

Posted by Norman Fung-2 on
URL: http://quantlib.414.s1.nabble.com/fatal-error-LNK1104-cannot-open-file-QuantLib-vc80-mt-0-9-7-lib-tp532.html

hello

I created a simple WIN32 console application. I keep getting this error as soon as I add this line to main.cpp:
#include <ql/quantlib.hpp>
The linker error is:

Error    29    fatal error LNK1104: cannot open file 'QuantLib-vc80-mt-0_9_7.lib'    SimpleWIN32Console   

I have already included ...
STEP 1: Tools\Options\VC++ Directories\Library Files\
                I:\dev\QuantLib\QuantLib-0.9.7\lib

STEP 2: Tools\Options\VC++ Directories\IncludeFiles\
                I:\dev\QuantLib\QuantLib-0.9.7

I then checked lib folder, there exists the following two files (but not the one in linker error message):
(file-a) QuantLib-vc80-mt-s-0_9_7.lib
(file-b) QuantLib-vc80-mt-sgd-0_9_7.lib

What's with "-s-" and "-sgd-" in lib file name? And where in "QuantLib" can I find reference to "QuantLib-vc80-mt-0_9_7.lib"? I cheated and manage to successfully compile and get rid of linker problem by renaming "file-a" to "QuantLib-vc80-mt-0_9_7.lib", thought there should be a more elegant way to do this!

Thanks!

Norman

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

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