作者ohb (好胜的命运是失落 I
看板EE_DSnP
标题[问题] dlist compiling error Orz
时间Thu Dec 28 01:24:43 2006
前面都过了 直到这里....
> compiling: ltest.cpp
In file included from ltest.cpp:3:
ltest.h:64: warning: friend declaration `std::ostream&
operator<<(std::ostream&, const DList<T>::LTestObj&)' declares a non-template
function
ltest.h:64: warning: (if this is not what you intended, make sure the
function template has already been declared and add <> after the function
name here) -Wno-non-template-friend disables this warning
ltest.h:108: error: expected `;' before "getPos"
ltest.h:122: error: expected `;' before "void"
然後後面就是一大串的ltest.h和ltest.cpp和../../include/dlist.h的error
这是怎麽了呢orz
因为後面一大串 我就没贴了
如果需要完整板 请推文告诉我@@
谢谢 orz
--
勇气,并不是不会害怕,
而是即使怕的要命,非常不安,却仍坚持信念的往前迈进。
因为认为是对的事。
~ Phantasia
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.110.47
1F:推 timrau:ltest.h被修改过了? 12/28 10:58
2F:推 timrau:刚刚某同学同样message的成因:dlist.h大括号不匹配 12/28 13:32
3F:推 ohb:嗯 我找到了 在某处少一个小括号 orz 12/28 16:30