[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev-en:170

From: Giaour <giaour mail.ru>
Date: Sun, 3 Sep 2006 01:07:41 +0400
Subject: [yarv-dev-en:170] Building yarv on windows

ML: yarv-dev-en quickml.atdot.net
New Member: giaour@m...

Hello,

I was trying to build yarv CVS snapshot on windows and ran into
following problem:
  For some reason yarv has "getenv=rb_w32_getenv" in its .def file.
Obviously it conflicts with getenv from runtime (I used libcmt.lib
runtime) during linking. Commenting it out works, but I don't know if
it right way to fix it :)
I understand why yarv has *nix calls there like geteuid, getgid, etc..
But having windows ones either (getc, getenv, getcwd) is like asking
for such link problems.

And while I'm here, I'd like to complain about win32.h:
We have a bunch of macros like '#define listen(s, b) rb_w32_listen(s, b)'
there. I already had problems with them in ruby-1.8.5 and hoped it is
fixed in yarv... problems like
#include <ruby.h>
struct Person {
...
   void listen(Person &who, Location &where);
}
This listen() ofcourse gets replaced with rb_w32_listen which breaks
everything. If you want all listen() calls inside yarv code to be
actually rb_w32_listen calls on windows, there must be better way to
do it.

Last issue I ran into is calling conventions. Yarv compiles fine with
cdecl as default, but fails if default is stdcall. This can be easily
fixed by specifying calling convention explicitly where needed (there
are not so many places where it has to be changed).

-- 
Best regards,
 Giaour                          mailto:giaour mail.ru


--
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

How to unsubscribe from the ML:
- Just send an empty message to <yarv-dev-en quickml.atdot.net>.
- Or, if you cannot send an empty message for some reason,
  please send a message just saying 'unsubscribe' to <yarv-dev-en quickml.atdot.net>.
  (e.g., hotmail's advertisement, signature, etc.)

Members of <yarv-dev-en quickml.atdot.net>:
ko1@a...
nohmad@g...
surrender_it@y...
tom@i...
wilsonb@g...
mfp@a...
curt.hibbs@g...
tsuraan@t...
kero@c...
why@w...
joaopedrosa@g...
grahamamacdonald@g...
adam.shelly@g...
gclryd-yarv-dev-en@m...
brixen@g...
jeffrey.dik@m...
rubyzbibd@u...
heidegger101@g...
klaus_momberger@y...
kashia@v...
chneukirchen@g...
aamine@l...
emiel@r...
kig@m...
pjpizza@r...
ksruby@g...
zn@m...
chris.a.williams@g...
eric@e...
gzoller@g...
ruby-forum-incoming@a...
diving@x...
steven@l...
emk.lists@g...
znmeb@c...
meinrad.recheis@g...
gerardo.santana@g...
carl.lerche@v...
drbrain@s...
james.britt@g...
joern-ml1@m...
sauer@b...
mark-ruby@a...
krisleech@i...
stephen.bannasch@g...
cies.breijs@g...
rgl@r...
nitayj@g...
xennocide@y...
slaytanic@g...
mental@r...
s450r1@g...
stephanwehner@g...
dudley@m...
shanko_date@y...
yuesefa@g...
ville.mattila@s...
beng@j...
edward.og@g...
boumenot@g...
giaour@m...

[前][次][番号順一覧][スレッド一覧][生データ]

->     170 2006-09-03 06:07 [giaour mail.ru      ] Building yarv on windows                
       171 2006-09-05 23:45 ┗[ko1 atdot.net       ]                                       
       173 2006-09-06 06:24  ┗[giaour mail.ru      ]