<URL: http://bugs.freeciv.org/Ticket/Display.html?id=29557 >

On 1/1/07, Christian Prochaska <[EMAIL PROTECTED]> wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=29557 >
>
> > [dmarks - Sa 23. Dez 2006, 04:45:07]:
> >
> > On 12/22/06, Christian Prochaska <[EMAIL PROTECTED]> wrote:
> > >
> > > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=29557 >
> > >
> > > > [cproc - Fr 22. Dez 2006, 04:32:52]:
> > > >
> > > > You can compile it with
> > > > "gcc `pkg-config --cflags sdl` `pkg-config --libs sdl`
> > > > -o sdl-crashtest sdl-crashtest.c"
> > > >
> > >
> > > Or better use sdl-config instead of pkg-config:
> > >
> > > "gcc `sdl-config --cflags` `sdl-config --libs` -o sdl-crashtest
> > > sdl-crashtest.c"
> > >
> >
> > It fails with:
> >
> > sdl-crashtest.c: In function `SDL_main':
> > sdl-crashtest.c:4: error: number of arguments doesn't match prototype
> > /usr/local/include/SDL/SDL_main.h:53: error: prototype declaration
> >
> > --Daniel
> >
>
> Ok, this one should compile.
>
>

The result:

ibg3:~/Desktop daniel$ gcc `sdl-config --cflags` `sdl-config --libs`
-o sdl-crashtest sdl-crashtest.c
ld: warning suggest use of -bind_at_load, as lazy binding may result
in errors or different symbols being used
symbol _acosl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _tanl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _tanhl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _asinl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _atan2l used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _atanl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _ceill used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _coshl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _cosl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _expl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _floorl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _fmodl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _frexpl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _hypotl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _ldexpl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _log10l used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _logl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _modfl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _powl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _sinhl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _sinl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
symbol _sqrtl used from dynamic library
/usr/lib/libstdc++.6.dylib(single module) not from earlier dynamic
library /usr/lib/libSystem.B.dylib(ld64.o)
ibg3:~/Desktop daniel$ ./sdl-crashtest
Video mode change successful.



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to