I'm pretty new to Mapnik libraries. I was able to follow the instructions to download the mapnik libraries on my Windows 7 computer and ran the python scripts to render shape files. It works just fine.
Now, I need to use mapnik in Visual C++ and I've been using Microsoft Visual Studio 2010 to write my VC++ code.
I did the following steps:
2. Installed Python 2.7.5 in directory C:\Python27
3. Perform installation in accordance with the instructions
4. "Installing Mapnik in Windows", in directory C:\mapnik-v2.2.0
=> Downloaded the source, unpacked the archive and executed from the directory \demo\python file rundemo.py - worked without error (new files were created: demo.jpg, demo.png,
demo256.png, map.xml)
5. Created in Visual C++ 2010 Professional Edition empty project (Win32 Console Application)
6. In the project settings added:
a) in “Include additional directories” add path C:\mapnik-v2.2.0\include

b) in “Additional libraries” add path C:\mapnik-v2.2.0\lib

c) in “additional dependence” add file mapnik.lib

8. Build the “Release|Win32” - no errors!
9. The following is the code I tried to run.
#include "stdafx.h"
#include <mapnik/map.hpp>
#include <mapnik/load_map.hpp>
#include <mapnik/agg_renderer.hpp>
#include <mapnik/image.hpp>
#include <mapnik/image_util.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
mapnik::Map m(256,256);
mapnik::load_map(m, 'C:\\mapnik-v2.2.0\\demo\\c++\\Demo1\\file.xml');
m.zoom_all();
mapnik::image_data_8 im(256,256);
mapnik::agg_renderer<mapnik::image_data_8> ren(m, im);
ren.apply();
mapnik::save_to_file(im, 'the_image.png');
return 0;
}
10. I got the following error.

Would you please help me to solve this error? Or if you have any helpful tutorials of using mapnik in VC++, please share with me.
Thanks a lot.
Teva