Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!ecsvax!urjlew From: urjlew@ecsvax.UUCP (Rostyk Lewyckyj) Newsgroups: comp.sys.amiga.tech Subject: Lattice 5.02 problem Keywords: Error 72, Warning 100, Warning 85 Message-ID: <7147@ecsvax.UUCP> Date: 11 Jun 89 06:00:33 GMT Distribution: na Organization: UNC Educational Computing Service Lines: 35 Trying to compile using Lattice C compiler version 5.02 (i.e version 5.0 with 5.02 patches from the disk mailed out from Lattice inc.) lc -L zz produced the following #include #include #include #include main() { ^ zz.c 6 error 72: External item attribute mismatch printf("test\n"); exit(0) } zz.c 9 warning 85: Function return value mismatch This test program is boiled down from a slightly larger real program. Obviously there is no need for all the #includes in the above example. I suspect some error in one of the include files. Does anyone know immediately where? Also I keep getting warning 100: No prototype for function. I get this even if I try any of the sample programs used in the Lattice manual to illustrate the use of their functions. What is the accepted prototype to provide for main() ?? Please mail replies directly to me as I am getting ever behinder in trying to keep up with the c.s.a and c.s.a.t newsgroups. -- ----------------------------------------------- Reply-To: Rostyslaw Jarema Lewyckyj urjlew@ecsvax.UUCP , urjlew@unc.bitnet or urjlew@uncvm1.acs.unc.edu (ARPA,SURA,NSF etc. internet) tel. (919)-962-9107