QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Cannot link Quantlib to new project in Visual studio 2022

Open thanhuwe8 opened this issue 3 years ago • 2 comments
trafficstars

Hi team,

Can you help me to understand why I cannot build the cpp in new project as the error is like this:

"LNK1104 cannot open file 'Quantlib-x64-mt-gd.lib'. image

I have build/release the project successfully as below. I also set up both link to boost and quantlib in new project as well

image

image

Thanks a lot!

thanhuwe8 avatar Jul 30 '22 19:07 thanhuwe8

Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.

boring-cyborg[bot] avatar Jul 30 '22 19:07 boring-cyborg[bot]

I don't a library with the -gd suffix in your screenshot. Looks like you'll need to compile the Debug configuration of QuantLib if that's what you want, or alternatively you can try compiling your project in the Release configuration.

sweemer avatar Jul 31 '22 04:07 sweemer

Thanks @sweemer , I tried to recompile the whole project using Release configuration and this works!

thanhuwe8 avatar Aug 07 '22 11:08 thanhuwe8