I hope this is the right place to report this finding. I don't know how to characterize this bug other than as a problem with compile flags generated by CMake. I'm able to work around it by hand editing makefiles before running nmake.
Following the instructions at http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_Visual_CXX: On running cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=install .. I find this definition in buildnmake\bindings\wxwidgets\CMakeFiles\plplotwxwidgetsd.dir\flags.make: # compile CXX with C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 -IC:\plplot\include -IC:\plplot\lib\qsastime -IC:\plplot\bindings\c++ -IC:\plplot\buildnmake -IC:\plplot\buildnmake\include -IC:\plplot\buildnmake\bindings\wxwidgets -IC:\wxWidgets\include -IC:\wxWidgets\lib\vc_dll\mswu WXUSINGDLL UNICODE _UNICODE Also, I find lines such as this in buildnmake\drivers\CMakeFiles\wxwidgets.dir\build.make: C:\PROGRA~1\MID05A~1\VC\bin\cl.exe @<< /nologo $(CXX_FLAGS) -IC:/wxWidgets/include -IC:/wxWidgets/lib/vc_dll/mswu WXUSINGDLL UNICODE _UNICODE -DUSINGDLL $(CXX_DEFINES) /TP /FoCMakeFiles\wxwidgets.dir\wxwidgets.cpp.obj /FdC:\plplot\buildnmake\dll\wxwidgets.pdb -c C:\plplot\drivers\wxwidgets.cpp Note that WXUSINGDLL, UNICODE, _UNICODE should each be preceded by "-D". When I edit the various makefiles (see below) before running nmake then I have success. Otherwise nmake fails. These are the make files I editted: buildnmake\bindings\wxwidgets\CMakeFiles\plplotwxwidgetsd.dir\flags.make buildnmake\drivers\CMakeFiles\wxwidgets.dir\build.make buildnmake\drivers\CMakeFiles\wxwidgets.dir\flags.make ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general