[Y-devel] ./configure script for Y-0.2.1 and libSDL

Misha Stepanov stepanov at iae.nsk.su
Thu May 27 05:41:46 BST 2004


I'm trying to install Y in cygwin.

I installed libSDL-1.2.7, and ./configure script for Y-0.2 was going
through libSDL point, still I'm having problems with libSigC++.
Nevertheless, ./configure script for Y-0.2.1 does not recognize libSDL
because the libSDL test program doesn't compile.

What I learned is that if I change in line 23318 of ./configure script
for Y-0.2.1
   int main (void) -> int main (int argc, char *argv[])
(as in ./configure script for Y-0.2) then ./configure script nicely goes
through libSDL stuff.

If one tries to compile a libSDL test program with "int main (void)"
from a command line, then one gets the following:

bash-2.05b$ cc -I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DW
IN32 -Uunix -mno-cygwin test.c
test.c:23: error: conflicting types for `SDL_main'
/usr/local/include/SDL/SDL_main.h:56: error: previous declaration of `SDL_main'
bash-2.05b$

Best regards,
Misha Stepanov

P.S. The output of "diff -c configure_old configure_new" command

*** configure_old       Wed May 26 15:38:56 2004
--- configure_new       Wed May 26 15:39:55 2004
***************
*** 23315,23321 ****
     return new_str;
   }

! int main (void)
   {
     int major, minor, micro;
     char *tmp_version;
--- 23315,23321 ----
     return new_str;
   }

! int main (int argc, char *argv[])
   {
     int major, minor, micro;
     char *tmp_version;



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved