开发者

Can I use link.h on a cygwin install?

开发者 https://www.devze.com 2023-01-12 16:36 出处:网络
I have installed the latest version of Cygwin, selecting the following packages during开发者_StackOverflow中文版 setup:

I have installed the latest version of Cygwin, selecting the following packages during开发者_StackOverflow中文版 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消