Path: news.cs.au.dk!Morten.Grouleff.Mjolner Informatics From: Morten Grouleff Newsgroups: comp.lang.beta Subject: Re: Static vs dynamic linking Date: 23 Feb 1999 09:47:19 +0100 Organization: Mjolner Informatics Lines: 21 Message-ID: References: <7atdp0$thq$1@news00.btx.dtag.de> NNTP-Posting-Host: freki.mjolner.dk Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: xinwen.cs.au.dk 919759639 12632 255.255.255.255 (23 Feb 1999 08:47:19 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 23 Feb 1999 08:47:19 GMT X-Newsreader: Gnus v5.5/Emacs 19.34 Xref: news.cs.au.dk comp.lang.beta:11837 Sascha.Kimmel@t-online.de (Sascha Kimmel) writes: > One short question: > does the BETA compiler link the libraries statically or dynamically? > I saw that the compiler includes e.g. the Winsock-Libraries (on Windows) > although I do not use any of these in my programs. Statically. But as e.g. winsock is a DLL, only the small stubs are linked. Winsock.dll is only loaded once a socket is opened at runtime. The debugger uses sockets. Therefore any program that may be debugged needs to link with winsock. If your program does not use sockets, and you do not wish to be able to debug it, run beta using option "-d" to exclude debug information. This reduces the size of the executable considerably. Regards, -- ** Morten Grouleff: ** ** Earthworm Jim PC: ** ** Mjølner Informatics: **