tags:

views:

19

answers:

1

I have installed the latest version of Cygwin, selecting the following packages during setup:

  • libgcc1
  • gcc
  • gcc-core

And created a file (test.c) with only this line:

#include <link.h>

Then ran the following from my Cygwin bash:

$ gcc test.c

... but got this error:

test.c:1:18: link.h: No such file or directory

Any ideas how I can fix it?

A: 

Cygwin is based on the Win32 subsystem, which means it uses Windows' executable format (COFF) and dynamic linker, i.e. it does not have an ELF dynamic linker. Hence providing the ELF-specific <link.h> would probably make little sense.

ak2