[問題] 用DEV寫socket程式

看板C_and_CPP (C/C++)作者 (是黑是白)時間15年前 (2010/12/21 15:54), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, Gcc, Linux, ...) DEV C++ 額外使用到的庫(Library Used) (Ex: OpenGL, ...) Pthread winsock2 問題(Question): 想用DEV寫socket程式 而且會用到pthread 一開始用c寫沒什麼問題 之後想改成cpp 好像就不能編譯了XD 想請問該如何調整編譯器讓我可以用cpp寫~ 錯誤結果(Wrong Output): [Linker error] undefined reference to `std::string::size() const' (出現很多類似上面的錯誤資訊) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.243.66

12/21 17:13, , 1F
專案開錯?
12/21 17:13, 1F

12/21 17:53, , 2F
真的耶!! 開成c專案了...
12/21 17:53, 2F

12/21 17:53, , 3F
感謝!!
12/21 17:53, 3F

11/09 22:34, , 4F
我愛美君
11/09 22:34, 4F
文章代碼(AID): #1D45rGW9 (C_and_CPP)
文章代碼(AID): #1D45rGW9 (C_and_CPP)