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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Mike Jake
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
Reply | Threaded
Open this post in threaded view
|

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

Luigi Ballabio
Hello Mike,

On Fri, May 25, 2012 at 4:18 PM, Mike Jake <[hidden email]> wrote:

> 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!.

The version now online at <http://quantlib.org/install/vc10.shtml>
seems correct.  Which one are you using?


> 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

This should be the issue described at
<http://msdn.microsoft.com/en-us/library/5ske5b71.aspx>.  Let me know
if this helps.

Luigi

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

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

Mike Jake
If I keep the obj files on QuantLib\QuantLib-1.2\build\vc100\Win32\Release or QuantLib\QuantLib-1.2\build\vc100\Win32\Debug, then I don't see any problems.

I am not sure whether or not I should keep the object files after I have built the QuantLib\QuantLib-1.2\lib\QuantLib-vc100-mt-gd.lib and QuantLib-vc100-mt.lib

Thank you

On Mon, May 28, 2012 at 3:34 AM, Luigi Ballabio <[hidden email]> wrote:
Hello Mike,

On Fri, May 25, 2012 at 4:18 PM, Mike Jake <[hidden email]> wrote:
> 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!.

The version now online at <http://quantlib.org/install/vc10.shtml>
seems correct.  Which one are you using?


> 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

This should be the issue described at
<http://msdn.microsoft.com/en-us/library/5ske5b71.aspx>.  Let me know
if this helps.

Luigi


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

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

Luigi Ballabio
On Tue, May 29, 2012 at 4:40 PM, Mike Jake <[hidden email]> wrote:
> If I keep the obj files on QuantLib\QuantLib-1.2\build\vc100\Win32\Release
> or QuantLib\QuantLib-1.2\build\vc100\Win32\Debug, then I don't see any
> problems.
>
> I am not sure whether or not I should keep the object files after I have
> built the QuantLib\QuantLib-1.2\lib\QuantLib-vc100-mt-gd.lib and
> QuantLib-vc100-mt.lib

It shouldn't be necessary.  Apart from the link warnings, does the library work?

Luigi

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

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

Mike Jake
It works for me. But I am the person that really hate to see those warnings so for now I will keep those obj files.

It is amazing that I didn't see a single warning complained by VS2010 after compiling and building the whole project. Great work!

On Tue, May 29, 2012 at 9:43 AM, Luigi Ballabio <[hidden email]> wrote:
On Tue, May 29, 2012 at 4:40 PM, Mike Jake <[hidden email]> wrote:
> If I keep the obj files on QuantLib\QuantLib-1.2\build\vc100\Win32\Release
> or QuantLib\QuantLib-1.2\build\vc100\Win32\Debug, then I don't see any
> problems.
>
> I am not sure whether or not I should keep the object files after I have
> built the QuantLib\QuantLib-1.2\lib\QuantLib-vc100-mt-gd.lib and
> QuantLib-vc100-mt.lib

It shouldn't be necessary.  Apart from the link warnings, does the library work?

Luigi


------------------------------------------------------------------------------
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