Forum: Ruby One Click Installer-Mingw-Swiftiply Problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
63b8056f715d4bc8c1415c97613360f4?d=identicon&s=25 Paul Fraser (Guest)
on 2009-03-15 04:15
(Received via mailing list)
The windows extension compile situation seems to be a mess!
Luis Lavena & Fabio Akita have downloads available using  mingw compiles
to address the problem.
I have tried Fabios complete mingw dev kit and had this problem with
swiftiply.
Apart from the missing ssleay, any clues as to a solution?

C:/Ruby18/bin/ruby.exe extconf.rb install swiftiply

checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
checking for main() in -lssleay32... no
creating Makefile

make
g++ -I. -I. -IC:/Ruby18/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_WINDOWS_H
-DHAVE_WINSOCK_H   -D OS_WIN3
2 -D BUILD_FOR_RUBY -EHs -GR -D WITHOUT_SSL -g -O2    -c mapper.cpp
mapper.cpp: In member function `void Mapper_t::Close()':
mapper.cpp:175: error: invalid conversion from `const void*' to `void*'
mapper.cpp:175: error:   initializing argument 1 of `BOOL
UnmapViewOfFile(void*)'
g++.exe: unrecognized option `-EHs'
g++.exe: unrecognized option `-GR'
make: *** [mapper.o] Error 1


Gem files will remain installed in
C:/Users/paulAdmin/dev/gems/gems/swiftiply-0.6.1.1 for inspection
.
Results logged to
C:/Users/paulAdmin/dev/gems/gems/swiftiply-0.6.1.1/ext/fastfilereader/gem_make.out

Thanks
Paul Fraser
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2009-05-09 23:37
> 2 -D BUILD_FOR_RUBY -EHs -GR -D WITHOUT_SSL -g -O2    -c mapper.cpp
> mapper.cpp: In member function `void Mapper_t::Close()':
> mapper.cpp:175: error: invalid conversion from `const void*' to `void*'
> mapper.cpp:175: error:   initializing argument 1 of `BOOL
> UnmapViewOfFile(void*)'
> g++.exe: unrecognized option `-EHs'
> g++.exe: unrecognized option `-GR'
> make: *** [mapper.o] Error 1

It was a "mingw doesnt like that" bug -- should be fixed with the latest
eventmachine release.
-=r
This topic is locked and can not be replied to.