warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information

Posted by Mike Jake on
URL: http://quantlib.414.s1.nabble.com/warning-LNK4204-C-QuantLib-QuantLib-1-2-QuantLibTest-Release-vc100-pdb-is-missing-debugging-informatn-tp7755.html

The QuantLib Installation in VC++ 2010 has some errors in the end of the tutorial.

The test code is as follows:

#include <ql/quantlib.hpp>
#include <iostream>
int main()
{
QuantLib::Calendar myCal=QuantLib::UnitedKingdom();
QuantLib::Date newYearsEve(31,QuantLib::Dec,2008);
std::cout > tmp;
return 0;
}

where tmp is undefined!.

I have made the following changes:

#include <ql/quantlib.hpp>
#include <iostream>
int main()
{
    QuantLib::Calendar myCal=QuantLib::UnitedKingdom();
    QuantLib::Date newYearsEve(31,QuantLib::Dec,2008);
    std::cout << myCal << std::endl;
    std::cout << newYearsEve << std::endl;
    return 0;
}

After rebuild, the VS2010 gives the following warning:

1>QuantLib-vc100-mt.lib(dataformatters.obj) : warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>QuantLib-vc100-mt.lib(calendar.obj) : warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>QuantLib-vc100-mt.lib(date.obj) : warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>QuantLib-vc100-mt.lib(unitedkingdom.obj) : warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>QuantLib-vc100-mt.lib(errors.obj) : warning LNK4204: 'C:\QuantLib\QuantLib-1.2\QuantLibTest\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info


Q1> How to correct the test code so that it can print the expected result shown in the tutorial?

Q2> How to fix the above link warning?

Thank you

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users