サイログ。

~雑多な記事置き場~

Ruby/SDLコンパイル続き

ようやく、MinGW+MSYSが動くようになりました。
原因は、binutilsを入れ忘れていたから・・・初歩的・・・。

あと、一緒に入れていたcygwin(大丈夫やと思うけど)も削除して、コンパイル開始。

Ruby1.8.5はコンパイルできました。
続いてSDL。まずはSGEのコンパイルから・・・ン、できん・・・。
ohaiさんが奨励しているMinGWインストーラー版を使わずに、手でgcc3.4.2を入れているから、
これが悪さしているのかな?

$ make dll
== SGE r030809
== Note: Trying to be C friendly.
== FreeType2 support disabled.
== SDL_Image (SFont) support disabled.

g++ -Wall -O3 -ffast-math -IH:/MinGW/1.0/mingw/bin/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -fPIC -c sge_bm_text.cpp
sge_bm_text.cpp:1: warning: -fPIC ignored for target (all code is position independent)
sge_bm_text.cpp: In function `SDL_Rect sge_BF_textoutf(SDL_Surface*, sge_bmpFont*, Sint16, Sint16, char*, ...)':
sge_bm_text.cpp:268: error: invalid initialization of non-const reference of type 'char*&' from a temporary of type 'char**'
:0: error: in passing argument 1 of `void __builtin_va_start(char*&, ...)'
make: *** [sge_bm_text.o] Error 1

というわけで、また明日。