Jump to content



Photo
- - - - -

Structure Compiler Complaint


  • Please log in to reply
2 replies to this topic

#1 paul_brassington

paul_brassington

    Newbie

  • Members
  • Pip
  • 25 posts

  • Calculators:
    fx-9860g II SD

Posted 06 March 2013 - 10:08 PM

Hi Guys,

Again many thanks for your replies and when I've fully completed my project I will produce a tutorial for other and put it on this site, without this site I would have no chance of completing my project.

So I have produced an empty project and a simple structure and it does not compile. In Visual Studio 2008 it does compile so I wonder why it does not compile with the Hitachi compiler.
#include "fxlib.h"
#include "dispbios.h"

struct menu {
	int noitems;
	bool type;
};

int AddIn_main(int isAppli, unsigned short OptionNum) {


	
}

#pragma section _BR_Size
unsigned long BR_Size;
#pragma section


#pragma section _TOP

int InitializeSystem(int isAppli, unsigned short OptionNum)
{
		return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
}

#pragma section

The error is:

C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\mathsanswers\menumaster\MENUKING.c(6) : C2500 (E) Illegal token "bool"

Any help greatly appreciated as I now realize that the Hitachi compiler may be very different from the Visual Studio compiler.

Paul

#2 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 06 March 2013 - 10:18 PM

It looks like the Hitachi compiler doesn't like the "bool" token. Don't know why though... maybe it isn't supported?

#3 Casimo

Casimo

    Casio Overlord

  • Members
  • PipPipPipPipPipPipPip
  • 641 posts
  • Gender:Not Telling

Posted 07 March 2013 - 06:47 AM

Add typedef char bool.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users