Steven Jenkins
5/4/2005 8:59:00 PM
Kian Wright wrote:
> Was it fairly straightforward to compile and link; using mkmf as described
> in the PickAxe?
Yes. The hard part was figuring out (a) what to download, and (b) how to
set up the environment so the compiler and linker could find everything
they needed.
From my rough notes:
Download and install Visual C++ Toolkit, Platform SDK, and .NET
Framework. One of these also had a prerequisite that required
installing. Don't remember what it was, but it was obvious.
Look for .bat files that set up path and environment variables in the
installed directories and execute them. The files I needed were called
SetEnv.bat, vcvars32.bat, and sdkvars.bat. I'll try to write up the full
paths tonight.
Append the necessary paths to %INCLUDE% and %LIB% to find headers and
libraries for your extension.
With all that set up, the standard idiom using extconf.rb worked fine.
Steve