Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error in types compiling in p8
23-10-2012, 02:52 PM,
#1
error in types compiling in p8
Hi!

triying to compile a DS18B20 temperature sensor example for a p8 board i get:

syntax error: token -> 'DS18B20_Temperature' ; column 23

and also

syntax error: token -> 'u8' ; column 3

if i compile for a p32 version i've got no problems...
The pinguino.log looks fine...

i'm using the trunk x.3 version... also with the x.3 rev399 version

perhaps i'm missing something about the compatibilities of the p8 an p32 versions?

thanks in advance
Reply
23-10-2012, 05:55 PM,
#2
RE: error in types compiling in p8
No problem with rev. 571 (last one) ...
Do you have a Subversion Client (Tortoise) to get the last version ?


(23-10-2012, 02:52 PM).:jvr:. Wrote: Hi!

triying to compile a DS18B20 temperature sensor example for a p8 board i get:

syntax error: token -> 'DS18B20_Temperature' ; column 23

and also

syntax error: token -> 'u8' ; column 3

if i compile for a p32 version i've got no problems...
The pinguino.log looks fine...

i'm using the trunk x.3 version... also with the x.3 rev399 version

perhaps i'm missing something about the compatibilities of the p8 an p32 versions?

thanks in advance
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
23-10-2012, 10:02 PM,
#3
RE: error in types compiling in p8
Quote:No problem with rev. 571 (last one) ...

thanks... but...
i've tried that version also!

$svn checkout http://pinguino32.googlecode.com/svn/trunk/x.3 ./

i'm using a debian stable linux system [squeeze]
mmmm, strange...
it seems that is problem for the linux version of the ide...
Reply
23-10-2012, 10:06 PM,
#4
RE: error in types compiling in p8
Sorry, I meant branches/x.4 not trunk/x.3

(23-10-2012, 10:02 PM).:jvr:. Wrote:
Quote:No problem with rev. 571 (last one) ...

thanks... but...
i've tried that version also!

$svn checkout http://pinguino32.googlecode.com/svn/trunk/x.3 ./

i'm using a debian stable linux system [squeeze]
mmmm, strange...
it seems that is problem for the linux version of the ide...
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
24-10-2012, 12:53 AM,
#5
RE: error in types compiling in p8
well...

i've resolv the problem using trunk/x.3

I's extange:

this code:

void loop() {
BOOL a;
a = FALSE;
TEMPERATURE t;
}

gives an error compiling for pic8, and none with pic32

but...
this other code:

void loop() {
TEMPERATURE t;
BOOL a;
a = FALSE;
}

works fine compiling fot both pics!!!

why on hell the order is so important???
extrange... isn't it?
Reply
24-10-2012, 09:32 AM,
#6
RE: error in types compiling in p8
Ok, I get it. There is a conflict between common_types.h, typedef.h et stdint.h for Pinguino 2550 and Pinguino 4550.
I am going to fix it ASAP.



(24-10-2012, 12:53 AM).:jvr:. Wrote: well...

i've resolv the problem using trunk/x.3

I's extange:

this code:

void loop() {
BOOL a;
a = FALSE;
TEMPERATURE t;
}

gives an error compiling for pic8, and none with pic32

but...
this other code:

void loop() {
TEMPERATURE t;
BOOL a;
a = FALSE;
}

works fine compiling fot both pics!!!

why on hell the order is so important???
extrange... isn't it?
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
24-10-2012, 10:42 AM, (This post was last modified: 24-10-2012, 10:43 AM by regis.)
#7
RE: error in types compiling in p8
There is also a C syntax problem I didn't see this morning.
8-bit use SDCC which is sometime more strict than GCC used by the 32-bit Pinguinos.
You must define type of variables first and then give them a value, so
TEMPERATURE t;
BOOL a;
a = FALSE;
is good, but
BOOL a;
a = FALSE;
TEMPERATURE t;
is wrong.
But you can do that :
BOOL a = FALSE;
TEMPERATURE t;
it should work.
Anyway I fixed the conflict between all types definition and I will commit the change later in X.4


(24-10-2012, 09:32 AM)regis Wrote: Ok, I get it. There is a conflict between common_types.h, typedef.h et stdint.h for Pinguino 2550 and Pinguino 4550.
I am going to fix it ASAP.



(24-10-2012, 12:53 AM).:jvr:. Wrote: well...

i've resolv the problem using trunk/x.3

I's extange:

this code:

void loop() {
BOOL a;
a = FALSE;
TEMPERATURE t;
}

gives an error compiling for pic8, and none with pic32

but...
this other code:

void loop() {
TEMPERATURE t;
BOOL a;
a = FALSE;
}

works fine compiling fot both pics!!!

why on hell the order is so important???
extrange... isn't it?
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
24-10-2012, 11:57 AM,
#8
RE: error in types compiling in p8
ok!

i've put this information in the wiki, i think maybe in the right place:
http://wiki.pinguino.cc/index.php/Data_types

it's ok?
Reply
24-10-2012, 12:47 PM,
#9
RE: error in types compiling in p8
Yes (except my english maybe Wink )..
Thanks.

(24-10-2012, 11:57 AM).:jvr:. Wrote: ok!

i've put this information in the wiki, i think maybe in the right place:
http://wiki.pinguino.cc/index.php/Data_types

it's ok?
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)