🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13053

Lattice 5.02 problem

#13053
From: Rostyk Lewyckyj
Date: Sun, 11 Jun 1989 06:00
35 lines
1666 bytes
 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
Technical Details
Message-ID: <7147@ecsvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!ecsvax!urjlew

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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