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:
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: 19538
Posted: Mon Feb 09, 2015 3:26 am
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.
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