I am trying to build PGPlot for Windows using the v 14.0.0092.11 Fortran compiler and Developer Studio 2012 and encountered a problem that I don't understand.
I followed the directions here:
and was able to successfully build a static library, pgplot.lib, using the Static Library project type in Developer Studio. I built one library for debug mode and one library for release mode.
I then attempted to build and run the first example, pgdemo1.f, as a QuickWin application, as described in the webpage refered above.. This was successful in release mode, where I linked against the version of pgplot.lib that I had originally built in release mode.
However, I could not built in debug mode. (I tried linking against the version of pgplot.lib that I had built in debug mode). When I tried to build the example, I got the following two error messages from the linker:
Error 1 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) MSVCRTD.lib(ti_inst.obj)
Error 2 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) MSVCRTD.lib(ti_inst.obj)
Error 4 fatal error LNK1169: one or more multiply defined symbols found Debug\pgplotExample.exe
Other than specifying the path to pgplot.lib in Linker/Input/Additional Dependencies and setting Properties/Fortran/Data/Use Bytes as RECL=Unit for Unformatted Files, I used the defaults that Developer Studio created when I created the "QuickWin" project, which I presume includes the libraries.
What do I do to resolve this conflict between libraries in debug mode? Thanks for any insight.