View topic - compile error

compile error

anything that doesn't fit to other groups.

compile error

Postby xuyong » Fri May 28, 2010 6:21 am

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?
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby Tim » Fri May 28, 2010 1:09 pm

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
Tim
Senior Member
 
Posts: 1466
Joined: Wed Mar 10, 2004 12:28 am

Postby mario » Fri May 28, 2010 1:42 pm

I'm guessing it's compile as a C file. What is the extention of the file?
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron