I Get the following error with Visual C++ 6. Is this a bug with the compiler and is there a work around?
d:\my documents\visual studio projects\mylib\lib.h(16) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Here's the class definition: Lib.h
d:\my documents\visual studio projects\mylib\lib.h(16) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Here's the class definition: Lib.h
Code:
#ifndef MYLIB_H
#define MYLIB_H
class Hen {
public:
Hen();
void Display(void);
class Nest;
friend class Nest;
class Nest {
public:
Nest();
void Display(void);
class Egg();
friend class Egg();
class Egg {
public:
Egg();
void Display(void);
private:
string colour;
};
private:
string colour;
};
private:
string colour;
};
#endif