English 中文(简体)
DDevC++中的链接错误不在代码表上。
原标题:Link error in DevC++ not in codepad.org

我正在学习C++,需要帮助汇编错误信息。 我有一些法典:。 http://codepad.org/ncGTYWew

When I compile in DevC++, I get this output: 22 C:Dev-CppProgram FileslinkedListType.h template-id operator<< <> forstd::basic_ostream >& operator<<(std::basic_ostream >&, const linkedListType&) does not match any template declaration

In codepad it seems to compile fine. Prior to this compile, both codepad and DevC++ requested I insert <> after the operator<< declaration in Line 22.

谁能解释为什么DevC++不承认模板? 我是否把“带” put;在错误的现场? 为什么不出现问题?

谢谢。

最佳回答

我建议你使用代码:锁而不是dev;五年前没有更新;新的标准0xC++。 我认为,两者都不支持。

问题回答

暂无回答




相关问题
C++/CLI : How to override Equal method of Object class

I am a newbie to C++/CLI and is having some problems trying to override the Equal method of the base Object class. I get the following compilation warning error for the following code. How should this ...

处理多重定义错误[封闭]

I m试图汇编一些C++文档。 • 在连接阶段(汇编工作)发现以下几类错误:

What s causing this error in a subclass of MKAnnotationView?

I m trying to create a subclass of MKAnnotationView for an iPhone Mapkit app, but for some reason I am suddenly encountering this error: Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/...

iphlpapi / ifdef.h

I m trying to use iphlpapi (GetAdapterInfo) and am having trouble compiling the code. I have iphlpapi.h from SDK 7 and have added the appropriate path to the include files in visual studio. I get ...

was not declared in this scope C++

Why do I get this error in the code below? class ST : public Instruction{ public: ST (string _name, int _value):Instruction(_name,_value){} void execute(int[]& anArr, int aVal){ //...

Adding an include guard breaks the build

I added #ifndef..#define..#endif to a file of my project and the compiler fails. As soon as I remove it or put any other name in the define it compiles fine. What could be the problem? Sounds like ...

<list> retreving items problem with iterator

I have a list of type Instruction*. Instruction is a class that I made. This class has a function called execute(). I create a list of Instruction* list<Instruction*> instList; I create an ...

热门标签