Strange build error

Discussion to talk about software related topics only.
Post Reply
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Strange build error

Post by v8dave »

I get the following error on build and I can't see what I am missing.

C:\nburn\include/pins.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PinIO'

I also get this error in the main code when I try to use the PINS class.

..\touchdrv.c:335: error: 'J2' undeclared (first use in this function)

for this line:

State = J2[45];

It lookes like a missing brace etc but I can't track it down. pins.h is included.

Anyone else seen this before?

Dave...
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Re: Strange build error

Post by v8dave »

Rats!! It was the file name.

It was simply a .c file so it was being treated as a C file.

Once I changed it to .cpp it compiles perfectly as C++.!

Dave...
Post Reply