I am trying to compile some source code in signin (in Windows 7) and when I run a Mac file < / P> The problem file is: - I do not understand what is going on, the file fcntl.h is available and which are called varaiables, they were not declared in this area when I compile < I have not created things with Saigvin, so it's off-the-clock. Base may be, but considering that you are building on Windows, which has a case-insensitive file system, are you sure that the compiler can So can your header G ++ - DAHAVCNIFIGIH-AI-VII. -WALL -VISITA-TerrorG-O2 -MT libcommon_a Fcntl.o -MD -MP -MF. Deps / libcommon_a-Fcntl.Tpo -c -o libcommon_a-Fcntl.o` test - F 'Fcntl.cpp' || Echo './'`Fcntl.cpp Fcntl.cpp: In Function Anticleauxac (Int): Fcntl.cpp: 8: Error:' F_GETFD 'was not declared in Fcntl.cpp: 8 as follows: Error:' FCNTL Fcntl.cpp: 11: Error: 'FD_CLOEXEC' was not declared in Fcntl.cpp: 12: Error: 'F_SETFD' was not declared in this scope [4]: 'F_SETFD' was not declared in this scope. *** [libcommon_a-fcntl.o] Making error 1 [4]: Directory `make /abyss-1.1 / 2 normal '[3]: *** [all recursive] making error 1 [3]: Directive Exclude `/abyss.1.1 .2 '[2]: *** [All] Error 2 made [2]: Excluding directory` /abyss.1.1.2' [1]: *** [.build-conf ] Error 2 [1]: Excluding directory `/cygdrive/c/Users/Martin/Documents/NetBeansProjects/abyss-1.1.12 ': *** [.build-impl] Error 2
#include "Fcntl.h" #include & lt; Fcntl.h & gt; / * Set the FD_CLOEXEC flag of the specified file descriptor. * / Inte SetcloicAcc (Int FD) {EIT Flags = FCNTL (FD, F_GETFD, 0); If (flags == -1) return -1; Flags | = FD_CLOEXEC; Return FCNTL (FD, F_SEFD, Flags); }
Fcntl.h
and the system header between fcntl.h
? It can only include its title twice and never get a system header.
Comments
Post a Comment