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?
Asked
Active
Viewed 2,293 times
1

Euan Rochester
- 183
- 1
- 8
1 Answers
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