[問題] 在VS2010底下找不到dirent.h

看板C_and_CPP作者 (wade)時間9年前 (2014/08/23 17:25), 9年前編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): VS2010 額外使用到的函數庫(Library Used): OpenCV 問題(Question): 在VS2010 include dirent.h cannot find.. 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 我在DevC++執行這串程式時可以順利執行 不過在VS2010在編譯時就告訴我找不到dirent.h http://i.imgur.com/GRm89Uw.png
http://i.imgur.com/o7tDmPQ.png
程式碼(Code):(請善用置底文網頁, 記得排版) http://goo.gl/Vp9Mzv 補充說明(Supplement): google查了一下 似乎是與作業系統有關? 幾篇文章都建議我去某網站下載http://www.softagalleria.net/dirent.php 將下載來的dirent.h放入指定的目錄底下 C:\Program Files\Microsoft Visual Studio 9.0\VC\include 不過我找不到那個目錄 我的目錄是 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include 我也把dirent.h放入上面那個目錄底下 不過似乎還是 我是win7 64位元系統 我VS2010一進來的時候選擇VS2010 C# 這樣會有影響嗎? 有大大們遇過這種問題嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.227.240.38 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1408785911.A.67E.html ※ 編輯: dwadefans (61.227.240.38), 08/23/2014 17:26:41 ※ 編輯: dwadefans (61.227.240.38), 08/23/2014 17:35:07

08/23 18:28, , 1F
08/23 18:28, 1F

08/24 15:23, , 2F
不然我再努力看看 謝謝!
08/24 15:23, 2F
文章代碼(AID): #1J-5ttP- (C_and_CPP)