Re: [gtk-list] Re: win32 install info
- From: Jim Duchek <jimduchek ou edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: win32 install info
- Date: Wed, 04 Aug 1999 05:19:29 -0500
Is there anyway to compile an executable 'statically'? I tried -static but it
didn't work, still wants the DLLs.
Jim
Øystein O Johansen wrote:
> ----- Markus wrote -----
> >Once upon a time (around Wed, Jul 28, 1999 at 12:47:51PM +0100 i think)
> > Øystein O Johansen told me :
> >> 4. Hey! The new zipfiles contain lib*.a files!! You do not have to
> create
> >> them from the DLL's!! Thanks Tor!
> >
> > what is the difference between the .a and .dll files, except
> >that windwos only loads .dll during runtime ?
>
> Actually not much difference. The .a files are import libraries, and you
> have to link against this files. Your executebale will execute the
> code in the DLL's. The same code is also present in the import libraries,
> but can be striped after linking.
>
> $ gcc -mno-cygwin hello.c -o hello -lgtk -lglib
> $ ls -l hello.exe
> -rwxr-xr-x 1 0 everyone 172062 Aug 4 11:16 hello.exe
> $ strip hello.exe
> $ ls -l hello.exe
> -rwxr-xr-x 1 0 everyone 3584 Aug 4 11:17 hello.exe
>
> See?
>
> >
> >> 7. Do a small test, like 'Hello World'
> >> gcc hello.c -o hello -lgdi32 -lkernel32 -lglib -lgdk -lgtk -lm
> >
> > Hm, do i really need gdi32,kernel32 ? afaik i never linked with
> >those and everything works (albeit slow, is this the solution ?)
>
> Yes, you're right. This was necessary on some of the previous releases.
> You do not need the gdi32 nor kernel32! Guess I'll have to update my
> gtk-config script!
>
> Regards,
> Oystein
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]