help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make/cygwin How does it know to create .exe


From: Dave Hylands
Subject: Re: make/cygwin How does it know to create .exe
Date: Thu, 29 Jun 2006 22:45:17 -0700

Hi Gulgul,

Replying to list...

On 6/29/06, Gulgul Mamla <address@hidden> wrote:

I am trying to learn C++ fromt the book "Thinking in C++" and running
samples on Windows XP. I am using make with cygwin. The make file is
included below. I can see how a target like "Declare" is made. But the file
created is Declare.exe.

Could somebody please help me understand how (what setting etc) the system
knows to create "Declare.exe" and not just "Declare"?

It happens automagically. Under linux, executables don't have an
extension. Under windows they have an .exe extension.

So the linker automatically adds a .exe extension so that linux
makefiles "just work".

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]