View topic - compile error
compile error
3 posts
• Page 1 of 1
compile error
I define a class as below:
#ifndef RAW_DEVICE
#define RAW_DEVICE
class VlanDevice
{
public:
VlanDevice()
{
}
~VlanDevice()
{
}
};
#endif
when it is compiled in qnx ide,there is one error "expected '=', ',', ';', 'asm' or '__attribute__' before ':' token",why?
#ifndef RAW_DEVICE
#define RAW_DEVICE
class VlanDevice
{
public:
VlanDevice()
{
}
~VlanDevice()
{
}
};
#endif
when it is compiled in qnx ide,there is one error "expected '=', ',', ';', 'asm' or '__attribute__' before ':' token",why?
- xuyong
- Senior Member
- Posts: 431
- Joined: Sun Mar 02, 2003 7:52 am
Xuyong,
There must be something else in your file / project besides what you posted (like an include file or other code).
when I cut and pasted your code into a file on my QNX machine and compiled directly in QNX using qcc it compiled just fine.
Tim
There must be something else in your file / project besides what you posted (like an include file or other code).
when I cut and pasted your code into a file on my QNX machine and compiled directly in QNX using qcc it compiled just fine.
Tim
- Tim
- Senior Member
- Posts: 1466
- Joined: Wed Mar 10, 2004 12:28 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests