MUS177/206 – window makefile changes for Pd externals

The makefile to compile the example externals from Pd 0.49 needs to be edited in order to work with Visual Studio Community 2017.

Do all of your editing and compilation on a copy of Pd in your \Users folder

The VC definition needs to be changed (as usual) to point to the 64-bit tools in VSC. Your setting will likely be different than mine.

VC="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726"

The PDNTCFLAGS need to be changed to eliminate /WX (treat all warnings as errors, and add a definition for PD_LONGINTTYPE to give PD 64-bit pointers. Without this, the audio example (dspobj~) will crash.

PDNTCFLAGS = /W3 /DNT /DPD /DPD_LONGINTTYPE="long long" /nologo

Now, make sure PDNTLDIR points to the 64 bit library folder by appending “\x64” to the path

PDNTLDIR = $(VC)\lib\x64

Finally, remove references to old names.lib and kernel32.lib and change libc.lib to libcmt.lib

PDNTLIB = $(PDNTLDIR)\libcmt.lib \
..\..\bin\pd.lib