看板 PangSir 關於我們 聯絡資訊
※ 引述《jztan (taekwon kid ><''')》之銘言: : 但accpet的定義是: : int accept(int s, struct sockaddr *addr, int *addrlen); : 不是: : int accept(int s, struct sockaddr *addr, socklen_t *addrlen); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 根據man,這個才是正確的喔! : 而且為什麼用.c檔就可以成功的compile呢? 這個我也不是很清楚,可能他強制轉型了吧。 如果我有查到資料在po上來分享。 -- 感覺對了 就要大聲說出來 不然會一輩子後悔 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.28.99
jztan:ooo~~thanks TA , then we should use g++ to 140.112.241.95 03/21
jztan:compile . is thx correct ? 140.112.241.95 03/21
servon:that's fine! 140.112.28.99 03/21