This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile static



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!



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]