Re: Can anyone help : ERROR 296
From: Paul Pluzhnikov (ppluzhnikov-nsp_at_charter.net)
Date: 09/22/05
- Next message: Oraboy: "Re: CPU"
- Previous message: ramesh.sarda_at_gmail.com: "Can anyone help : ERROR 296"
- In reply to: ramesh.sarda_at_gmail.com: "Can anyone help : ERROR 296"
- Next in thread: Dennis Handly: "Re: Can anyone help : ERROR 296"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Sep 2005 07:16:10 -0700
ramesh.sarda@gmail.com writes:
> Error 298: "test.c", line 6 # In ANSI C bitfields must be one of 'int',
> 'signed int', or 'unsigned int' type.
> u_char field1 :4;
Did you have a question, or are you simply entertaining us with
your buggy code? Please read this:
http://www.catb.org/~esr/faqs/smart-questions.html
> struct {
> u_char field1 :4;
> }full_of_fields;
Make that (just like compiler told you to):
struct {
unsigned int field1 :4;
} full_of_fields;
Cheers,
-- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email.
- Next message: Oraboy: "Re: CPU"
- Previous message: ramesh.sarda_at_gmail.com: "Can anyone help : ERROR 296"
- In reply to: ramesh.sarda_at_gmail.com: "Can anyone help : ERROR 296"
- Next in thread: Dennis Handly: "Re: Can anyone help : ERROR 296"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|