This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

CYGWIN JPEG question



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]