Skip to content
C extension gem template
Ruby C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
ext
lib
.gitignore
.project
.travis.yml
Gemfile
Gemfile.lock
HISTORY
README.md
Rakefile
c_ext_gem.gemspec

README.md

Code Climate Build Status Dependency Status

This gem demonstrates how a new gems with C extensions can be created. It also demonstrates how to create a swig based extension.

You can use this gem as basis for own C extension gems (like a template).

Tested with

  • ruby 1.9.3p0 (2011-10-30) [i386-mingw32], swigwin-2.0.5, Windows XP
  • ruby 1.9.3p0 (2011-10-30) [i386-mingw32], swigwin-2.0.6, Windows XP
  • ruby 1.9.3p125 (2012-02-16) [i386-mingw32], swigwin-2.0.5, Windows XP

Prerequsites:

  • DevKit installed
  • [http://www.swig.org SWIG] installed and swig.exe in execution path
  • gem install rake-compiler

Build gem:

  • gem build c_ext_gem.gemspec

Build extension and install:

  • gem install c_ext_gem-0.0.1.gem

See following links for a starting point:

Something went wrong with that request. Please try again.