| www.delorie.com/archives/browse.cgi | search |
| From: | Jack Carico <carija AT wwc DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | unions, help! |
| Date: | Tue, 31 Mar 1998 15:20:45 -0800 |
| Organization: | All USENET -- http://www.Supernews.com |
| Lines: | 24 |
| Message-ID: | <35217A4D.17B0@wwc.edu> |
| NNTP-Posting-Host: | 29251 AT 206 DOT 63 DOT 145 DOT 141 |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I am learning C and when I try to compile this example program through
RHIDE I get the message "there were some errors". DJGPP seems to do this
for any program that attempts to define a union.
(example.c)
#include <stdio.h>
int main()
{
union share
{
int i_face;
char c_face[8];
};
union share jec_hyd;
printf("%d\n",sizeof(jec_hyd));
return(0);
}
Thanks for any help.
-Jack Carico
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |