Re: Strange C compile error

Lim Hock-Chai <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
It turns out to be caused by library list issue.  We have a file (same file name but diff lay out (one has some extra fields than the other) that exists in two diff libraries.  My job description library is setup correctly.  The compiler picks up the correct file and compile the code without problem.  I corrected the implementer JOBD and the problem has been resolved.  Why would C compiler produced such a strange error message is beyond me.  




-----Original Message-----
From: Lim Hock-Chai 
Sent: Monday, April 21, 2014 10:53 AM
To: 'c400-l-Zwy7GipZuJhWk0Htik3J/[email protected]'
Subject: Strange C compile error

I'm getting these strange CZM0275/CZM0282 errors that I just couldn't quite be able to figure out.  The c compiler only produces these errors when I compile it thru MKS implementer.  It compiles fine if I compile it from command line.

 
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1....+....2.
   63       |int ECDMBR_RO(char [],char [],char [],char []);                                                   |     63? 
   64       |void getUASCOBPF(BL5K *);                                                                         |     64? 
   65       |int setHeaderCC(F10_DSECDHDR  *);                  //005                                          |     65? 
   66       |int ProcessHeaderRecord(MHR *,int);                                                               |     66? 
   67       |int                                                                                               |     67? 
===========> .....b.............................a..............................................................?         
*=SEVERE==========> a - CZM0275  Unexpected text '*' encountered.                                                        
*=SEVERE==========> b - CZM0282  The type of the parameters must be specified in a prototype.                            
   68       |JOBDAT(char []);                                                                                  |     68? 
   69       |int AtoI(char [],int);                                                                            |     69? 
   70       |int LoadIndexKey(BL5K *, F10_DSECDHDR *);             //007                                       |     70? 
   71       |void                                                                                              |     71? 
   72       |printThis(char *text);                                                                        //0\|     72? 
   72       |06                                                                                                |     72? 
   73       |                                                                                                  |     73? 
===========> ....c..............................a..b...........................................................?         
*=SEVERE==========> a - CZM0275  Unexpected text '*' encountered.                                                        
*=SEVERE==========> b - CZM0276  Syntax error: possible missing identifier?                                              
*=SEVERE==========> c - CZM0282  The type of the parameters must be specified in a prototype.                            
-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.