[comp.sys.amiga.tech] Lattice 5.02 problem

urjlew@ecsvax.UUCP (Rostyk Lewyckyj) (06/11/89)

 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 <dos.h>
  #include <stdio.h>
  #include <string.h>
  #include <stdlib.h>
   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