Re: [問題] G++ Bug: there are no arguments to ꄠ…
看板C_and_CPP (C/C++)作者littleshan (我要加入劍道社!)時間16年前 (2009/02/20 13:54)推噓1(1推 0噓 0→)留言1則, 1人參與討論串2/2 (看更多)
這不是 bug 而是新版的 gcc 要求 code 要符合標準
你應該是忘了 #include <cstring>
※ 引述《Reinhard (無價)》之銘言:
: 今天重編了之前可以 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: 59.115.147.87
推
02/20 14:32, , 1F
02/20 14:32, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章