1

When #including the unistd.h and fcntl.h files which mingw librarys must i also link in for correct compilation? also is there any easy way to determine this, or a list of which headers need which libs?

Euan Rochester
  • 183
  • 1
  • 8

1 Answers1

2

Both those files are in the c std library. According to this: Standard C library in mingW you need to link against msvcrt.a

Here is a list of files in the c std library: http://en.wikipedia.org/wiki/C_POSIX_library

Community
  • 1
  • 1
anio
  • 8,903
  • 7
  • 35
  • 53