By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,484 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,484 IT Pros & Developers. It's quick & easy.

C Compile error

P: 1
I am compiling a batch file.
I am getting this error:

root@u000823a# cc -o bb batchY.c -I/home/moa/src/include
UX:acomp: ERROR: "/home/moa/src/include/typedefs.h", line 48: Syntax error before or at: Icon
UX:acomp: ERROR: "/home/moa/src/include/typedefs.h", line 48: cannot recover from previous errors
root@u000823a#


And then header file typedef's 48th line is shown as below:

---------------------------------------------------------------------------------------------
34 #ifdef NT
35 typedef unsigned int uint;
36 typedef unsigned short ushort;
37
38 typedef struct Icon {
39 unsigned long data[32]; /* Bit array (32 * 32 bits) */
40 } Icon;
41 #endif
42 typedef struct IconHeader {
43 unsigned short iconsize;
44 unsigned short icontype; /* ISC, Windows */
45 } IconHeader;
46 typedef struct rtIcon {
47 IconHeader iconhdr;
48 Icon icondat;
49 } rtIcon;
--------------------------------------------------------------------------------------------

If any body has some idea please reply.

Biswajeet
Mar 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.