CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Compilation Error of CCS

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bob_kang



Joined: 09 Feb 2015
Posts: 1

View user's profile Send private message

Compilation Error of CCS
PostPosted: Mon Feb 09, 2015 3:05 am     Reply with quote

Hi, I'm new to the CCS compiler and now working on a project based on PIC18F47J53 MCU using CCS compiler.
The source code are given from the other guy. There is only one .c file and several .txt files (not .h file). I've downloaded the latest CCS compiler demo version from the CCS website. I create a new project and take place with the .c and .txt files and try to build it, but it doesn't pass the compilation. The error comes from the .txt file, I put some sections of the one of the .txt file as below:
Code:

#define warning_image_size (64 * 10)
byte const warning_image [warning_image_size]={

//Row 64
0b00111111
0b11111111
0b11111111
0b11111111
0b11111111
0b11111111
0b11111111
0b11111111
0b11111111
0b11111000
....
....

It says that the comma is missing, but it's weird that my colleague told me that he could pass the compilation with the whole package. Does anybody know why?
Ttelmah



Joined: 11 Mar 2010
Posts: 19454

View user's profile Send private message

PostPosted: Mon Feb 09, 2015 3:26 am     Reply with quote

Because it does need commas....

I'd guess he is actually compiling in something other than C.

From a C reference:

"
The list of values, enclosed in braces {}, separated by commas, provides the initial values for successive elements of the array.
"
note 'separated by commas'.

There are some other languages that will accept a line feed as the end of a value.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group