COSMIC question
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2006-09-21 3:09 AM
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2006-09-20 11:54 PM
Posted on September 21, 2006 at 08:54
Hello COSMIC gurus. What is wrong with the following code?
union { unsigned int i; unsigned int * p; struct { unsigned char h; unsigned char l; } b; } pt; The error is in the pointer declaration. I have tried modifying this with the @near directive (since I want a 2-byte pointer) but no luck. The compiler tells me a member is missing. Removing the pointer declaration makes the compiler happy. I'm quite confused because I've used unions before with this compiler without problems. I am using V4.5.5 (eval) and the target is a 72F521R9.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2006-09-21 12:18 AM
Posted on September 21, 2006 at 09:18
Forget that. Just had to use a variable name bigger than one character.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2006-09-21 3:09 AM
Posted on September 21, 2006 at 12:09
... as the program includes this line:
#define p 5 !