[問題] 用DEV寫socket程式
開發平台(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
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
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章