144
166
RUBY_INCLUDE: D:\ruby\lib\ruby\1.6\i586-mswin32<br>
145
167
RUBY_LIB: D:\ruby\lib\mswin32-ruby16.lib<br>
148
171
<H4><a name="Windows_nn11"></a>3.2.1.6 C#</H4>
151
175
The C# examples do not require any environment variables to be set as a C# project file is included.
152
176
Just open up the .sln solution file in Visual Studio .NET 2003 and do a Rebuild All from the Build menu.
153
177
The accompanying C# and C++ project file are automatically used by the solution file.
155
180
<H3><a name="Windows_nn12"></a>3.2.2 Instructions for using the Examples with other compilers</H3>
158
184
If you do not have access to Visual C++ you will have to set up project files / Makefiles for your chosen compiler. There is a section in each of the language modules detailing what needs setting up using Visual C++ which may be of some guidance. Alternatively you may want to use Cygwin as described in the following section.
160
187
<H2><a name="Windows_nn13"></a>3.3 SWIG on Cygwin and MinGW</H2>
163
191
SWIG can also be compiled and run using <a href="http://www.cygwin.com">Cygwin</a> or <a href="http://www.mingw.org">MinGW</a> which provides a Unix like front end to Windows and comes free with gcc, an ANSI C/C++ compiler. However, this is not a recommended approach as the prebuilt executable is supplied.
165
194
<H3><a name="swig_exe"></a>3.3.1 Building swig.exe on Windows</H3>
168
198
If you want to replicate the build of swig.exe that comes with the download, follow the MinGW instructions below.
169
199
This is not necessary to use the supplied swig.exe.
170
200
This information is provided for those that want to modify the SWIG source code in a Windows environment.
171
201
Normally this is not needed, so most people will want to ignore this section.
173
204
<H4><a name="Windows_nn15"></a>3.3.1.1 Building swig.exe using MinGW and MSYS</H4>