From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5efbdfc29332ef301c2319865dbe56f9@caldo.demon.co.uk> To: 9fans@cse.psu.edu Subject: Re: [9fans] gcc trouble From: Charles Forsyth In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-laqpjtbogumrqedzciyeuoamrb" Date: Fri, 7 Nov 2003 21:11:04 +0000 Topicbox-Message-UUID: 82266c84-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-laqpjtbogumrqedzciyeuoamrb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit >> uses the same library, however when compiled with 8c it hangs >> on trying to parse all the horrible #if's in png.h, and when try the -p option for ansi cpp. --upas-laqpjtbogumrqedzciyeuoamrb Content-Type: message/rfc822 Content-Disposition: inline Return-path: <9fans-admin@cse.psu.edu> Received: from punt-3.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 1AIC55-00053T-DK; Fri, 07 Nov 2003 19:15:39 +0000 Received: from [130.203.4.6] (helo=mail.cse.psu.edu) by punt-3.mail.demon.net with esmtp id 1AIC55-00053T-DK for forsyth@caldo.demon.co.uk; Fri, 07 Nov 2003 19:15:39 +0000 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id E536E19AAD; Fri, 7 Nov 2003 14:15:30 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.23.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6301619AF6; Fri, 7 Nov 2003 14:15:10 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id ADF4C19AD0; Fri, 7 Nov 2003 14:14:16 -0500 (EST) Received: from plan9-2.ucalgary.ca (fbsd.cpsc.ucalgary.ca [136.159.7.68]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id BF34A19980 for <9fans@cse.psu.edu>; Fri, 7 Nov 2003 14:14:04 -0500 (EST) Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] gcc trouble From: mirtchov@cpsc.ucalgary.ca In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 7 Nov 2003 12:14:03 -0700 X-Spam-Status: No, hits=-0.2 required=5.0 tests=IN_REP_TO,NO_REAL_NAME,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) >> ps: does anyone know if it's possible to link together object files >> compiled with pcc and 8c? > > yes. pcc is just a wrapper around 8c. > but when I try to compile a Plan 9 C program with pcc it complains about not being able to find draw.h and friends... here's the situation, see if you can give me an advice: - the png viewer in Plan 9 is broken and has been for a while - i can't find the bug (libflate is suspect) so i decide to use the default libpng library, which in turn uses the unix zlib, both of which are in /sys/src/cmd/gs/ - i compile both zlib and libpng using pcc. the pngtest.c program that comes with libpng works when compiled with pcc, though it never displays anything on the screen (it just verifies that it can read png files) - i write a very basic 'pngtest' program for Plan 9, which uses the same library, however when compiled with 8c it hangs on trying to parse all the horrible #if's in png.h, and when compiled with pcc it has no understanding of draw() commands... any ideas? andrey --upas-laqpjtbogumrqedzciyeuoamrb--