REM This batch file is used to compile and link a C program that calls
REM CDF library functions. The MS Visual Studio 2015 VC++ 14.0 is used here. 
REM Change the CDF directories that are being used for the include and library
REM before the batch file is executed.
REM Make sure that c:\program files (x86)\"Microsoft Visual Studio 14's vcvarsall.bat
REM is executed if the batch file is there.
REM 
cl /c /I"c:\program files (x86)\cdf_distribution\cdf39_0-dist\include" /I "c:\program files (x86)\Microsoft Visual Studio 9.0\vc\include" /D"_FILE_OFFSET_BITS=64" /D"_LARGEFILE64_SOURCE" /D"_LARGEFILE_SOURCE" /D "WIN32" %1.c
link /out:%1.exe %1.obj "c:\program files (x86)\cdf_distribution\cdf39_0-dist\lib\dllcdf.lib" /nodefaultlib:libcd /nodefaultlib:libcmtd 

