Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Daniel G. Aliaga" To: Subject: CYGWIN JPEG question Date: Wed, 29 Aug 2001 11:25:25 -0400 Message-ID: <000901c1309e$d43e6730$a8256887@research.belllabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 I recently installed CYGWIN. Its great! I'm porting code that uses the standard JPEG library. I specify the library on the link line, but I get error messages such as the following (one for every jpeg call): ....: undefined reference to 'import stub for jpeg_read_header(jpeg_decompress_struct *, int)' and so forth, etc. I suppose this has something to do with DLLs vs libraries. It seems libjpeg.a and libjpeg.dll.a are already in /usr/lib. I suppose the installation properly created them. cjpeg and djpeg work just fine. Is there something special I need to do during link time? I come from a Unix background. My compile line is something simple like: "g++ -o myprogram myprogram.C -ljpeg -lm" Thanks, -D. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/