I have added the DCMTK library inside another project. I'm using Visual Studio 2013 and the code works properly but when I compile it I have about 700 warnings, all like this:
Code: Select all
dcmdata.lib(dcbytstr.obj): warning LNK4204: 'path\vc120.pdb' is missing debugging information for referencing module; linking object as if no debug info
I have read a lot of thing about this warning but I think that in my case I can ignore it. I have tried a lot of thing in order to remove it but nothing happens. Looking at the dcmtk\config\osconfig.h I have found this portion of the code
Code: Select all
#if _MSC_VER >= 1400 /* Additional settings for Visual Studio 2005 and newer */
#pragma warning( disable : 4996 ) /* disable warnings about "deprecated" C runtime functions */
#pragma warning( disable : 4351 ) /* disable warnings about "new behavior" when initializing the elements of an array */
#endif /* _MSC_VER >= 1400 */
Another strange things is that I don't have the warnings if I don't delete the directory where I have extracted the DCMTK library and used with CMAKE. What I mean is that if I extract in C:\test and use the CMAKE using as source C:\test I don't have the warnings but if I delete or rename teh C:\test the warning appears; so I think that in some place there is this absolute path.
How can I fix it o how I can supress the warning?