G
G?nter Omer
Hi there!
I'm just trying to compile a header file (unsing Borland C++ Builder
10)implementing a class, containing the declaration of the STL <list>
but it
refuses to work.
The following errors occure:
"test.h" line 29 type name expected
"test.h" line 29 declaration missing
Interesting is that it works if I copy the declaration into the
main.cpp
file!
Here is the source:
<snip fileName="test.h">
class xy
{
public:
void getI(void);
void setI(int);
private:
int i;
};
class xyy
{
public:
void do_something(void);
private:
list <xy *> myList;
};
</snip>
Thanks in Advance!
Günter
I'm just trying to compile a header file (unsing Borland C++ Builder
10)implementing a class, containing the declaration of the STL <list>
but it
refuses to work.
The following errors occure:
"test.h" line 29 type name expected
"test.h" line 29 declaration missing
Interesting is that it works if I copy the declaration into the
main.cpp
file!
Here is the source:
<snip fileName="test.h">
class xy
{
public:
void getI(void);
void setI(int);
private:
int i;
};
class xyy
{
public:
void do_something(void);
private:
list <xy *> myList;
};
</snip>
Thanks in Advance!
Günter