delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/11/04:41:05

From: "Stefan Viljoen" <rylan AT intekom DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling graphics executables, png.h
Date: Sat, 11 Mar 2000 11:05:52 +0200
Organization: The South African Internet Exchange
Lines: 34
Message-ID: <8ad2ku$edh$1@ctb-nnrp1.saix.net>
References: <8abto5$27q$1 AT news5 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: pc36-01-p62.nt.saix.net
X-Trace: ctb-nnrp1.saix.net 952765918 14769 155.239.194.62 (11 Mar 2000 09:11:58 GMT)
X-Complaints-To: abuse AT saix DOT net
NNTP-Posting-Date: 11 Mar 2000 09:11:58 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> in the code, the djgpp arguments it lists to compile are:
> gcc *.cpp -s -O2 -o fire.exe -lstdcxx -lpng -lz
>
> First I got an error about not having png.h so I went off and downloaded
> that and loads of other .h files it needed, but even now it fails wit the
> error:
> "c:/djgpp/bin/ld.exe: cannot open -lpng: No such file or directory
<ENOENT>
> collect2: ld returned 1 exit status"
>
> Can you help me sort this out, believe me I've tried, and can't. So please
> help!!

Hi Dave,

The problem is that you need another file too - called libpng.a - look for
this file and download it too. Place it in the
djgpp\lib directory and try to compile again. This is a library file in
which the actual code that is referenced by headers in
the png .h reside, and which you MUST have in order to get libpng to work.

Hope this helped!

Stefan


--
This message courtesy of
RylanNet rylan AT intekom DOT co DOT za
http://home.intekom.com/rylan/
--
StarWars for ever!.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019