Author |
Message |
Topic: Getting "Option invalid No Internal Osc" when co |
c_user
Replies: 2
Views: 7137
|
Forum: General CCS C Discussion Posted: Fri Apr 08, 2011 5:08 pm Subject: Getting "Option invalid No Internal Osc" when co |
Thank you for helping. |
Topic: Getting "Option invalid No Internal Osc" when co |
c_user
Replies: 2
Views: 7137
|
Forum: General CCS C Discussion Posted: Fri Apr 08, 2011 3:57 pm Subject: Getting "Option invalid No Internal Osc" when co |
I have a design I previously compiled a long time ago. I just downloaded the latest version of the compiler and now come up with a bizarre message.
I am using a pic18F4550 device, with an internal ... |
Topic: Pointer to array pointer to structures - compile error help |
c_user
Replies: 2
Views: 4537
|
Forum: General CCS C Discussion Posted: Sun Jun 13, 2010 10:48 pm Subject: Pointer to array pointer to structures - compile error help |
Thanks for giving me a solution. I see why it works. But I am still curious whether my C declaration was wrong, or whether the compiler can't handle it. If you know, I'd appreciate hearing your analys ... |
Topic: Pointer to array pointer to structures - compile error help |
c_user
Replies: 2
Views: 4537
|
Forum: General CCS C Discussion Posted: Sat Jun 12, 2010 3:55 pm Subject: Pointer to array pointer to structures - compile error help |
I have the following structure:
typedef struct font_struct
{
int16 font_length;
int16 font_width;
} font_select;
I then add an array of pointers to this structure, ... |
Topic: function pointer as structure member |
c_user
Replies: 1
Views: 3618
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2010 11:30 pm Subject: function pointer as structure member |
Can I have a pointer function as a member of a structure? From what I've read, this is allowed, but my experiment with this compiler doesn't seem to recognize the function pointer.
Any thoughts? |
Topic: Initialize integer array in structure |
c_user
Replies: 5
Views: 10020
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 6:48 pm Subject: Initialize integer array in structure |
Thanks for identifying the problem. |
Topic: Initialize integer array in structure |
c_user
Replies: 5
Views: 10020
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 4:33 pm Subject: Initialize integer array in structure |
My mistake - I am using 4.107
There is a reason I need to initialize the array, in the way I am doing it. This is extracted code to present the problem.
Am I violating a syntactic rule of C? |
Topic: Initialize integer array in structure |
c_user
Replies: 5
Views: 10020
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 4:19 pm Subject: Initialize integer array in structure |
I am using version 4.109. Also the following (with brackets) gives the same error:
init_example.val[] = {1,2,3,4,5,6,7};
init_example.type = 6; |
Topic: Initialize integer array in structure |
c_user
Replies: 5
Views: 10020
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 4:04 pm Subject: Initialize integer array in structure |
I have a simple struct as follows:
typedef struct
{
int8 val[8];
int8 type;
} init_struct;
init_struct init_example;
Then I try to initialize array, val ... |
|