anchor.diff:  	echo.^)
   )
   
  -if not exist mapnik_c_api.obj cl -c -nologo -Zm200 -Zc:wchar_t- -O2 %MAPNIK_CXXFLAGS% -W3 -w34100 -w34189 %MAPNIK_C_DEFINES% -I"c:\mapnik-v2.2.0\include" -I"c:\mapnik-v2.2.0\include\mapnik\agg" -I"." mapnik_c_api.cpp
  +echo.
  +echo.Compiling C API to shared library
  +echo.
  +
  +if not exist mapnik_c_api.obj cl -c -nologo -Zm200 -Zc:wchar_t- -O2 %MAPNIK_CXXFLAGS% -W3 -w34100 -w34189 %MAPNIK_C_DEFINES% -I"%MAPNIK_SDK_PATH%\include" -I"%MAPNIK_SDK_PATH%\include\mapnik\agg" -I"." mapnik_c_api.cpp
   ::link /LIBPATH:%MAPNIK_LDFLAGS% %MAPNIK_LIBS% %MAPNIK_DEPLIBS% mapnik_c_api.obj /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /OUT:mapnik_c_api.dll 
   link /LIBPATH:%MAPNIK_LDFLAGS% %MAPNIK_LIBS%  mapnik_c_api.obj /DLL /OUT:mapnik_c_api.dll 
   
  +IF NOT EXIST mapnik_c_api.dll (
  +    echo.
  +    echo.ERROR: Could not compile the DLL. Check for any error messages above.
  +    goto :eof
  +)
  +
  +echo.
  +echo.Installing C API DLL to %MAPNIK_SDK_PATH%\lib
  +echo.
  +
   del mapnik_c_api.obj  mapnik_c_api.cpp  mapnik_c_api.lib  mapnik_c_api.exp
  -move /y mapnik_c_api.dll c:\mapnik-v2.2.0\lib
  +move /y mapnik_c_api.dll %MAPNIK_SDK_PATH%\lib
  +
  +echo.
  +echo.Installing Go package
  +echo.
   
   go install 
   
  
positive.code: > gen_import_windows.go (
      echo.package mapnik
  	echo.
      echo.// #cgo LDFLAGS: c:/mapnik-v2.2.0/lib/mapnik_c_api.dll
  	echo.import"C"
  	echo.
  	echo.const (
  
negative.code: cls
  
  @echo off
  setlocal EnableDelayedExpansion
  
  If NOT DEFINED MAPNIK_SDK_PATH set MAPNIK_SDK_PATH=c:\mapnik-sdk
  
  echo.
  echo.Using Mapnik SDK from here: %MAPNIK_SDK_PATH%
  echo.
  
  If NOT EXIST %MAPNIK_SDK_PATH%\bin\mapnik-config.bat (
      echo.ERROR: Cannot find mapnik-config bat in %MAPNIK_SDK_PATH%\bin. Aborting...
      goto :eof
  )
  
  echo.
  echo.Downloading C API from github
  echo.
  
  if not exist mapnik_c_api.cpp curl -LO https://raw.github.com/springmeyer/mapnik-c-api/master/mapnik_c_api.cpp
  if not exist mapnik_c_api.h curl -LO https://raw.github.com/springmeyer/mapnik-c-api/master/mapnik_c_api.h
  