home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
- From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C 6.0 stdio prototypes
- Message-ID: <hemmer.02mf@hemmer.adsp.sub.org>
- Date: 5 Nov 92 01:19:30 GMT
- Reply-To: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Organization: Interactivsion
- Lines: 36
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <68769@cup.portal.com> Fred_M_Hamilton@cup.portal.com writes:
-
- > Can anyone tell me why this seemingly innocent SAS/C 6.0 code as this:
- > --------------------------------------------------------------------------
- > #include<stdio.h>
- > #include<clib/alib_stdio_protos.h>
- >
- > main()
- > {
- >
- > printf("Help me, world!");
- >
- > }
- > --------------------------------------------------------------------------
- > causes lots of compiler errors, such as:
- >
- > LONG __builtin_printf ( STRPTR fmt, ... );
- > include:clib/alib_stdio_protos.h 18 Error 72: conflict
- > with previous declaration. See line 98 file "include:stdio.h"
- >
- > I thought I was including the prototypes like I was supposed to.
-
- Well you're referring to both sc.lib's and amiga.lib's printf() code,
- which is faulty. Remove the second #include line to get the printf()
- code from sc.lib, or remove the first #include to get printf() from
- amiga.lib (I won't recommend it :).
-
- > -Fred
-
- --
-
- Best regards Reply to: hemmer@hemmer.adsp.sub.org
- Franz Hemmer #include <stddisclaimer.h>
- Software Developer _ >> Carpe Diem! - Seize the day! <<
- \\ _
- Interacti\X/ision - The name of precision
-