作者littleshan (我要加入剑道社!)
看板C_and_CPP
标题Re: [问题] G++ Bug: there are no arguments to ꄠ…
时间Fri Feb 20 13:53:59 2009
这不是 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
1F:推 Reinhard:学长好 XD 02/20 14:32