Mail Archives: djgpp/1998/11/05/02:19:46
On Thu, 5 Nov 1998, Alessandro Moure wrote:
> Hi. I've download version 2.3 of GRX library and the JPEG-6B pack.
> After a few hours I've managed to create the libjpeg.a file. :)
> But, now, when I try to compile my software, I get a error message
> "undefined reference to GrGetScanlineC()" function. This function is
> called by SaveContextToJpeg().
> I've checked grx20.h and the function is there.
You are looking in the wrong place. When the linker complains about
``undefined references'', it means it cannot find the function (or
some other globally-defined symbol, like a global variable) in any of
the libraries you included on the link command line. Header files
just declare the prototypes of functions, and only for the consumption
of the compiler; the linker doesn't care about headers.
So what you need is to look for `GrGetScanlineC' in the GRX library,
or in the GRX sources, if the library doesn't include it. The `nm'
utility is the usual tool to look at library contents, and section 8.8
of the DJGPP FAQ list explains how to use `nm' to do that.
> BTW, there was a small bug in the ctx2jpeg.c file. In line 140, the
> parameter is "cxt" and not "ctx".
I suggest to report this to the Jpeg maintainers.
- Raw text -