[問題] G++ Bug: there are no arguments to ꄠ…

看板C_and_CPP (C/C++)作者 (無價)時間16年前 (2009/02/20 13:11), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/2 (看更多)
今天重編了之前可以 pass 的一段 code 卻出現了下列 error message: there are no arguments to ‘strlen’ that depend on a template parameter, so a declaration of ‘strlen’ must be available (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) 似乎是在向 programmer 要 template argument 但 strlen 應該是沒有的啊 似乎是 G++ 某特定版本的 bug? 請問版上有人碰過嗎? (我的版本是 4.3.2) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.29.130 ※ 編輯: Reinhard 來自: 140.112.29.130 (02/20 13:15)

02/20 14:23, , 1F
這訊息只讓我覺得是你的 source code 有問題。
02/20 14:23, 1F

02/20 14:23, , 2F
以前可以過現在不能過的不代表以前的就是對的。
02/20 14:23, 2F
文章代碼(AID): #19dZk1En (C_and_CPP)
文章代碼(AID): #19dZk1En (C_and_CPP)