systypes.h

    1熱度

    2回答

    我將一些軟件移植到Unix上的Window,並在Windows XP SP3上使用g ++ v4.7。我有一個頭文件中的聲明看起來像這樣: #include <string> #include <sys/types.h> using namespace std; bool MakeDir(const string &dirName, mode_t mode =S_IRWXU

    4熱度

    2回答

    #include <sys/types.h> //Line 2: typedef unsigned int uint; //Line 3: typedef unsigned int uint; int main() { uint a; return 0; } 鑑於上述的C代碼,它的編譯成功,對於UINT在<sys/types.h>定義。儘管它不是標準化的,但是它增加

    0熱度

    1回答

    我使用Ubuntu 14.04 LTS,並試圖以如下運行prog1.c的: #include<stdio.h> #include<usr/include/sys/types.h> int main() { printf("Hello World"); } $gcc prog1.c ,並得到錯誤「致命錯誤:/ usr/include目錄/sys/types.h:沒有這樣的文件或目