compile static

feketga x@aigrene.sh.klte.hu
Thu Feb 21 05:07:00 GMT 2002


On Thu, 21 Feb 2002, Simon Gee wrote:

> Your static library be placed at the end of the link line:
>
> gcc -static hilbert.c -o hilbert `sdl-config --static-libs --cflags`
>
> (note you shouldn't need to explicitly give /usr/lib/libSDL.a since it is given by `sdl-config --static-libs --cflags` in your previous post)
>

It works correctly!
Thanks!




More information about the Gcc-help mailing list