Question about libraries
Jarrett Billingsley
kb3ctd2 at yahoo.com
Tue May 29 19:30:55 PDT 2007
"Ary Manzana" <ary at esperanto.org.ar> wrote in message
news:f3il6s$k9k$1 at digitalmars.com...
>
> -L/exet:nt/su:windows:4.0 C:\ary\PROGRA~1\d\dmd\lib\DFL_DE~1.LIB
>
> What is the meaning of that?
>
> I'm asking this question because we'll make Descent configurable for
> building projects, and for that a user should specify include paths,
> libraries, and some flags. But, I don't understand how the -L switch
> works. The documentation just says:
>
> -Llinkerflag
> pass linkerflag to the linker, for example, /ma/li
>
It passes everything that followss (up to a space, perhaps) to the linker,
so you have to look at the linker's usage to find out what all those flags
do.
In this case, /exet:nt means "EXEType: Windows NT" (i.e. XP),
/su:windows:4.0 means "SUbsystem: Windows 4.0" (i.e. XP again, unless
someone really pedantic wants to tell me otherwise). So it's telling the
linker we want to make a Windows executable. This will prevent any command
prompt from flashing up when your EXE starts, or something like that.
More information about the Digitalmars-d-learn
mailing list