From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15370 invoked from network); 9 Mar 1998 21:31:16 -0000 Received: from ns.blueskystudios.com (208.5.132.2) by mail2.redhat.com with SMTP; 9 Mar 1998 21:31:15 -0000 Received: from scotia ([199.165.156.54]) by ns.blueskystudios.com (Netscape Mail Server v2.0) with SMTP id AAA12923; Mon, 9 Mar 1998 16:35:39 -0500 Sender: hadsell@blueskystudios.com (Dick Hadsell) Message-ID: <350460C4.FF6@blueskystudios.com> Date: Mon, 09 Mar 1998 16:36:04 -0500 From: Richard Hadsell Organization: Blue Sky | VIFX X-Mailer: Mozilla 3.01 (X11; I; IRIX 6.2 IP22) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Whereis libm.a ? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Christopher Curtis wrote: > > Why does this program: > > #line 3823 "configure" > #include "confdefs.h" > #include > main() > { > FILE *f=fopen("conftestval", "w"); > if (!f) exit(1); > fprintf(f, "%d\n", sizeof(char)); > exit(0); > } > > tell me that the sizeof(char) is 0 ? Perhaps size_t on your platfrom is a long, while you told fprintf to expect an int, and long is not the same size as int? This must make C++ programmers smile! -- Dick Hadsell 914-381-8400 Fax: 914-381-9790 Reply-to: hadsell@blueskystudios.com Blue Sky | VIFX http://www.blueskystudios.com 1 South Road, Harrison, NY 10528