winln for native symlinks

Daniel Colascione dancol@dancol.org
Wed Apr 3 12:36:00 GMT 2013


On 4/3/2013 1:01 AM, Thomas Wolff wrote:
> Am 03.04.2013 09:15, schrieb Daniel Colascione:
>> In light of the recent discussion on the developers list about native symlinks,
>> I'd like to suggest including my winln program (which I posted a while ago on
>> this list, and which I've attached to this message) in the cygutils package.
>> It's a drop-in replacement for GNU ld.
> I'm getting this:
> 
> winln.c: In function ‘do_link’:
> winln.c:343:21: error: ‘SYMBOLIC_LINK_FLAG_DIRECTORY’ undeclared (first use in
> this function)

Thanks. It'd been a while since I've compiled the program. Our old headers must
have had a bug that led to defining that flag even for OS versions that didn't
actually support symbolic links. Changing _WIN32_WINNT to 0x600 (Vista) made the
program compile again.

> (In cygwin64, additionally: make: cc: Command not found)

That's a problem with the cygwin64 distribution. It's common for "cc" to run the
normal C compiler.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130403/9e73f18c/attachment.sig>


More information about the Cygwin mailing list