[問題] MinGW include winbase.h發生錯誤

看板C_and_CPP作者 (阿光)時間12年前 (2013/10/03 20:44), 編輯推噓1(103)
留言4則, 3人參與, 最新討論串1/1
開發平台(Platf orm): (Ex: VC++, GCC, Linux, ...) g++, MinGW, windows7 64bit 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 小弟我想在程式裡增加建立新的資料夾的功能, GOOGLE一下發現要使用windows api,(暫不考慮跨平台及BOOST LIB) 但在加入winbase.h後卻回報No such file or directory, 在$MinGW_HOME\include也有看到winbase.h, 請問一下大大我是不是MinGW哪裡設定錯誤造成找不到檔案 小弟先謝過了 餵入的資料(Input): #include <winbase> 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): $ g++ src/main.cpp src/main.cpp:14:19: fatal error: winbase: No such file or directory #include <winbase> ^ compilation terminated. 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.110.59.58

10/03 20:48, , 1F
winbase.h 我們應該有什麼誤會.
10/03 20:48, 1F

10/03 21:20, , 2F
哈哈 有誤會的樣子
10/03 21:20, 2F

10/05 12:05, , 3F
試試 #include <cwinbase> 或 #include <winbase.h> ???
10/05 12:05, 3F

10/07 09:56, , 4F
最好是有 cwinbase 啦
10/07 09:56, 4F
文章代碼(AID): #1IJMR8Bg (C_and_CPP)