From: Lyle Johnson Date: 2001-05-15T23:40:09+09:00 Subject: [ruby-talk:15164] Re: building libraries in win32 (uconv) > Hi, > I downloaded the 1.6.3 version of cygwin ruby. > I tried some of the xml samples (since I plan to use ruby to manipulate xml) > and found out > that some of them needed the uconv package, therefore I downloaded the > source and tried > to build it. When following the installation and build instruction I got an > error from gcc stating > that the -mwin32 option was not recognized removing this option from the > generated makefile > corrected everything. However since the makefile was generated this must > have been used for > building the distribution so I wonder what it is? > Benoit > PS > here is the gcc version on my machine: > > Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/specs > gcc version 2.95.2-6 19991024 (cygwin experimental) I think that this installer for Ruby 1.6.3 was not intended to be downloaded yet, and may still have some problems. At any rate, you are correct that "-mwin32" is not a valid compiler option for the standard Cygwin version of the gcc compiler; just edit the Makefile generated by extconf.rb and remove that particular option from the CFLAGS. After making this change, the "uconv" package should compile and link properly. If problems persist, you may want to back up and use the previous version of Ruby from here: http://dev.rubycentral.com/downloads/files/ruby162-3.exe I am copying this message to Andy Hunt in case he doesn't also see your post on the newsgroup.