From mboxrd@z Thu Jan 1 00:00:00 1970 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 Date: Fri, 7 Nov 2003 12:14:03 -0700 Topicbox-Message-UUID: 81df7950-eacc-11e9-9e20-41e7f4b1d025 >> 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