Stange header behaviour (tinypy)

11 Oct 2012

Hello :)

I'm currently compiling the virtual python machin on MBED :

http://mbed.org/users/gignops/code/tinypy/

It seems to work fine. Now I'm working on the low level (i.e DigitalOut, etc) implementation.

When I put #include "mbed.h" everywhere but not in the main.cpp, the compiler send me :

"invalid combination of type specifiers" in file "opt/RVDS4.1-r791/includetime.h", Line: 70, Col: 21

"expected an identifier" in file "opt/RVDS4.1-r791/includetime.h", Line: 248, Col: 19

"expected a ";"" in file "opt/RVDS4.1-r791/includetime.h", Line: 248, Col: 19

"invalid combination of type specifiers" in file "mbed.bldDirHandle.h", Line: 10, Col: 12

"declaration requires a typedef name" in file "mbed.bldFileHandle.h", Line: 13, Col: 18

"invalid combination of type specifiers" in file "mbed.bldFileSystemLike.h", Line: 15, Col: 12

Any ideas are welcome ;)

Gignops

11 Oct 2012

Eureka !

The include of mbed.h occurs after :

  1. ifndef USE_ISOC99
  2. define USE_ISOC99
  3. endif

It seems to be a problem.

Thank you for your help, I would no found without your answers ^^

Gignops