B
Bjoern
Hello,
I am trying to build a program that comes with a ruby extension. It
seems extconf.rb does all the wrong things, though. For example it seems
to set 'cl' as the compiler, whereas I want to use gcc (from MinGW). If
I edit the makefile to change cl to gcc, I get a 'gcc: no input files'.
However, I don't really know anything about gcc compiler flags.
How do I get extconf.rb to do the right thing? It is just the standard
require 'mkmf'
$CFLAGS += " -DRUBYINTERFACE "
create_makefile("Mars");
I am new to Ruby, too, but it would be great to gather experiences with
it using that software I am trying to compile (exMars).
Also, I don't fully understand the 'extending Ruby' chapter - does it
mean that I have to install every C-program I want to access in the Ruby
home directory? I hope not... Can I even access a gcc-compiled program
with a Ruby that has been compiled with VC++?
Many thanks in advance for any pointers!
Bjoern
I am trying to build a program that comes with a ruby extension. It
seems extconf.rb does all the wrong things, though. For example it seems
to set 'cl' as the compiler, whereas I want to use gcc (from MinGW). If
I edit the makefile to change cl to gcc, I get a 'gcc: no input files'.
However, I don't really know anything about gcc compiler flags.
How do I get extconf.rb to do the right thing? It is just the standard
require 'mkmf'
$CFLAGS += " -DRUBYINTERFACE "
create_makefile("Mars");
I am new to Ruby, too, but it would be great to gather experiences with
it using that software I am trying to compile (exMars).
Also, I don't fully understand the 'extending Ruby' chapter - does it
mean that I have to install every C-program I want to access in the Ruby
home directory? I hope not... Can I even access a gcc-compiled program
with a Ruby that has been compiled with VC++?
Many thanks in advance for any pointers!
Bjoern