home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15400 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.6 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
  2. From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS/C 6.0 stdio prototypes
  5. Message-ID: <hemmer.02mf@hemmer.adsp.sub.org>
  6. Date: 5 Nov 92 01:19:30 GMT
  7. Reply-To: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
  8. Organization: Interactivsion
  9. Lines: 36
  10. X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
  11.  
  12. In article <68769@cup.portal.com> Fred_M_Hamilton@cup.portal.com writes:
  13.  
  14. > Can anyone tell me why this seemingly innocent SAS/C 6.0 code as this:
  15. > --------------------------------------------------------------------------
  16. > #include<stdio.h>
  17. > #include<clib/alib_stdio_protos.h>
  18. > main()
  19. > {
  20. >    printf("Help me, world!");
  21. > }
  22. > --------------------------------------------------------------------------
  23. > causes lots of compiler errors, such as:
  24. > LONG  __builtin_printf ( STRPTR fmt, ... );
  25. > include:clib/alib_stdio_protos.h 18 Error 72: conflict 
  26. > with previous declaration.  See line 98 file "include:stdio.h"
  27. > I thought I was including the prototypes like I was supposed to.
  28.  
  29. Well you're referring to both sc.lib's and amiga.lib's printf() code,
  30. which is faulty. Remove the second #include line to get the printf()
  31. code from sc.lib, or remove the first #include to get printf() from
  32. amiga.lib (I won't recommend it :).
  33.  
  34. > -Fred
  35.  
  36. -- 
  37.  
  38. Best regards                    Reply to: hemmer@hemmer.adsp.sub.org
  39. Franz Hemmer                    #include <stddisclaimer.h>
  40. Software Developer       _      >> Carpe Diem! - Seize the day! <<
  41.                          \\ _
  42.                  Interacti\X/ision - The name of precision
  43.