472,358 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

Template, fatal error C1001: INTERNAL COMPILER ERROR

This gives me a fatal error.
I'm using .NET VC7.1 and made a win32 consol app, I have no problems with
VC6. Debug build.

I have removed nearly all my code this is whats left. From the beginning the
template was defined in a .h file, but that has no effect, same error.

I have seen when searching for fatal error that there are some problems with
templates and optimization, but nothing as simple like this. I'm i doing
something wrong?

#include "stdafx.h"
namespace _DKEYLST
{

template <class Type>
class CMListNode
{
public:
int DeleteNode();
};

};

namespace _DKEYLST
{
template <class Type>
CMListNode<Type>::DeleteNode()
{
return 0;
}
};

class CMyClass
{
public:
CMyClass(){}
};

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

c:\temp\arun\arun\arun.cpp(27) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information

Nov 17 '05 #1
2 2833
Itjalve wrote:
#include "stdafx.h"
namespace _DKEYLST
{

template <class Type>
class CMListNode
{
public:
int DeleteNode();
};

};

namespace _DKEYLST
{
template <class Type>
CMListNode<Type>::DeleteNode()
should be

int CMListNode<Type>::DeleteNode()
{
return 0;
}
};

class CMyClass
{
public:
CMyClass(){}
};

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}


-cd
Nov 17 '05 #2
Thank you!

"Carl Daniel [VC++ MVP]" wrote:
Itjalve wrote:
#include "stdafx.h"
namespace _DKEYLST
{

template <class Type>
class CMListNode
{
public:
int DeleteNode();
};

};

namespace _DKEYLST
{
template <class Type>
CMListNode<Type>::DeleteNode()


should be

int CMListNode<Type>::DeleteNode()
{
return 0;
}
};

class CMyClass
{
public:
CMyClass(){}
};

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}


-cd

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Marco Nova | last post by:
Hello I'm using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I've some problem compiling a project, it give me the error ...
3
by: Sven Groot | last post by:
This was posted by someone in comp.lang.c++, and later in microsoft.public.vstudio.general, but since I know Carl is in this group, and he's the one that should read this, I've reposted it here....
10
by: PufferFish | last post by:
Hi folks, I hope that this is the correct group for these things, apologies if not. I've got a strange compiler error. It appears to be similar to the issue described in knowledgebase...
4
by: cgparis | last post by:
Dear forum members, I am trying to compile C++ code under MS Visual Studio .NET 2003, which references the latest Xerces C++ release library (2.6.0). This Xerces release was made available...
4
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following...
8
by: Nick Keighley | last post by:
Hi, Perhaps I was little ambitious with this template class. When I define exception classes for packages I seemed to write code similar to this each time:- class DecompressionError :...
2
by: pascal.zschumme | last post by:
hello folks My problem is that the following code using something very very difficult technique :D fails to compile on MSVC8: <code> // main.cpp // // the error is: // main.cpp(8) : fatal...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
1
by: tQtP8Ecy3dqNkbVp | last post by:
Hi, I'd like to point out this post on the comp.lang.c++ newsgroup in which I present some code that I've been told is perfectly legitimate and standard-compliant. The problem I'm having with vc++...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.