HI,
I am a new user of SWIG. I am trying to build Swig  in Visual Studio: i added all the source code files to a Visual C++ project but after trying to build i got long list of errors. Part of them were solvable, part of them still prevent build swig.exe :
 

\swig\modules\main.cxx(559) : warning C4244: 'argument' : conversion from '__w64 int' to 'int', possible loss of data

\swig\swig\modules\main.cxx(594) : error C2065: 'SWIG_CXX' : undeclared identifier

\swig\swig\modules\main.cxx(594) : error C2065: 'SWIG_PLATFORM' : undeclared identifier

\\swig\swig\modules\main.cxx(595) : error C2065: 'PACKAGE_BUGREPORT' : undeclared identifier

\swig\swig\modules\main.cxx(827) : error C2065: 'PACKAGE_VERSION' : undeclared identifier

\swig\swig\modules\main.cxx(832) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data

\swig\modules\main.cxx(857) : error C2664: 'GetModuleFileNameW' : cannot convert parameter 2 from 'char [260]' to 'LPWCH'

1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

\swig\modules\main.cxx(861) : error C2065: 'SWIG_LIB_WIN_UNIX' : undeclared identifier

\swig\modules\ocaml.cxx(78) : error C2065: 'SWIG_LIB' : undeclared identifier

\swig\modules\ocaml.cxx(987) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data

\swig\modules\ocaml.cxx(998) : warning C4244: 'argument' : conversion from '__w64 int' to 'int', possible loss of data

I'm sure its not suppose to be difficult to solve it but i am lost.

Thanks in advance for your help

Okle