🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #55

Re: compiling in codewarrior

#55
From: Daniel Friederich
Date: Thu, 08 Jul 2004 12:22
162 lines
4680 bytes
Looking at the error messages I would guess that "byte" is not a known 
type in this code.
Is there anywhere a
typedef unsigned char byte;
?
Search in the preprocessor output for the first occurence of byte.

Bye

Daniel
MW Ron wrote:
> In article <candy.190n5s@mail.codecomments.com>,
>  candy <candy.190n5s@mail.codecomments.com> wrote:
> 
> I'll check with our 8/16 bit team 
> 
> I've cross posted this to codewarrior.emedded where others may help
> 
> Ron
> 
> 
>>The codewarrier version is 3.0
>>We are using it for the HCO8 type microcontroller- GT16
>>and I learnt that bit variables are not supported in codewarrier.
>>Is that causing the problem.
>>Will the 'Big and Little Endian' solve the problem.
>>If it can, how is it to be used.
> 
> 
> 
>>Errors 
>>
>>Error   : C2450: Expected:  ; 
>>
>>byte ADC_bReadData(
>>
>>byte bChannel /*
>>*
>>*  Description: adc channel in which analog signal is available for
>>
>>*               conversion
>>*
>>*  Direction  : in>
>>*
>>*  Values     : 0 - 7 ( ADC channel )
>>*/
>>
>>);
>>
>>Error   : C2450: Expected:  ; = , 
>>
>>extern byte DIST_bDistanceCount; /*
>>*
>>* Description : Will be incremented for every km of distance travel
>>*
>>*/
>>
>>
>>Error   : C2450: Expected:  ; 
>>
>>byte EEPRM_bSubmitReadRequest(byte bDataType) ;
>>
>>
>>Error   : Compile failed
>>
>>
>>Error   : C2450: Expected:  ; = , 
>>
>>const byte abFuelData_Tbl[50][2] ={ 
>>                {10,  0x1B},
>>                {20,  0x25},
>>                {30,  0x40},
>>                {40,  0x5E},
>>                {50,  0x6E},
>>                {60,  0x83},
>>                {70,  0x90},
>>                {80,  0x9C},
>>                {90,  0xA6},
>>                {100, 0xAE},
>>                {110, 0xB7},
>>                {120, 0xC1},
>>                {130, 0xCD},
>>                {140, 0xD3},
>>                {150, 0xD5},
>>                {160, 0xDB},
>>                {170, 0xE2},
>>                {180, 0xE7},
>>                {190, 0xEE},
>>                {200, 0xF3},
>>                {210, 0xF8},
>>                {220, 0xFF},
>>                {230, 0xFF}
>>
>>};
>>
>>
>>Error   : C1008: Typedef name expected
>>
>>volatile union
>>{
>>struct
>>{
>>byte PTA_B7     : 1;
>>byte PTA_B6     : 1;
>>byte PTA_B5     : 1;
>>byte PTA_B4     : 1;
>>byte PTA_B3     : 1;
>>byte PTA_B2     : 1;
>>byte PTA_B1     : 1;
>>byte PTA_B0     : 1;
>>
>>} PTA_BITS;
>>
>>byte PTA_BYTE;
>>
>>}PORTA @ 0x00;
>>
>>Error   : C1007: Type specifier mismatch
>>
>>volatile union
>>{
>>struct
>>{
>>byte PTA_B7     : 1;
>>byte PTA_B6     : 1;
>>byte PTA_B5     : 1;
>>byte PTA_B4     : 1;
>>byte PTA_B3     : 1;
>>byte PTA_B2     : 1;
>>byte PTA_B1     : 1;
>>byte PTA_B0     : 1;
>>
>>} PTA_BITS;
>>
>>byte PTA_BYTE;
>>
>>}PORTA @ 0x00;
>>
>>
>>Error   : C1104: Bit field type is neither integral nor enum type
>>
>>volatile union
>>{
>>struct
>>{
>>byte PTA_B7     : 1;
>>byte PTA_B6     : 1;
>>byte PTA_B5     : 1;
>>byte PTA_B4     : 1;
>>byte PTA_B3     : 1;
>>byte PTA_B2     : 1;
>>byte PTA_B1     : 1;
>>byte PTA_B0     : 1;
>>
>>} PTA_BITS;
>>
>>byte PTA_BYTE;
>>
>>}PORTA @ 0x00;
>>
> 
> 
Technical Details
Message-ID: <40ED3C7E.3070805@metrowerks.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed2.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!not-for-mail
References: <candy.18wxtr@mail.codecomments.com> <mwron-04ECD5.18251706072004@news.newsguy.com> <candy.190n5s@mail.codecomments.com> <mwron-D59F9B.12244407072004@news.newsguy.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,6e3ae2784298dacb
X-Google-Thread: 10228c,32a28b93cd8836a7
X-Google-Attributes: gidf635e,gid10228c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed2.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!not-for-mail
From: Daniel Friederich <NOSPAM_dfriederich@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.embedded
Subject: Re: compiling in codewarrior
Date: Thu, 08 Jul 2004 14:22:22 +0200
Organization: Motorola
Lines: 162
Message-ID: <40ED3C7E.3070805@metrowerks.com>
References: <candy.18wxtr@mail.codecomments.com> <mwron-04ECD5.18251706072004@news.newsguy.com> <candy.190n5s@mail.codecomments.com> <mwron-D59F9B.12244407072004@news.newsguy.com>
NNTP-Posting-Host: 10.161.120.68
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: newshost.mot.com 1089289488 12353 10.161.120.68 (8 Jul 2004 12:24:48 GMT)
X-Complaints-To: motpost1@azmsg.mot.com
NNTP-Posting-Date: 8 Jul 2004 12:24:48 GMT
To: MW Ron <mwron@metrowerks.com>
User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)
X-Accept-Language: en-us, en
In-Reply-To: <mwron-D59F9B.12244407072004@news.newsguy.com>