REM This batch file is used to compile and link a C program that calls
REM CDF library functions. The MS Visual Studio 2008 VC++ 9.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 9"\vc\vcvarsall.bat
REM is executed if the batch file is there.
REM 
cl /c /I"c:\cdf35_0-dist-net2008-64\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:\cdf35_0-dist-net2008-64\lib\libcdf.lib" /nodefaultlib:libcd /nodefaultlib:libcmtd 

