|
|
On 25 Mar 2008, at 18:59, Frank Eory wrote:
> Hi guys,
> Thanks for respoding to my icon post. I have both codeblocks + MS
> Visual C++ express. In codeblocks, compiling with Mingw, I have
> the exact same linker error problem as you guys dealt with over here:
> 'undefined reference to _jped_std_error'
> http://permalink.gmane.org/gmane.comp.lib.fltk.general/15852
>
>
> Linking executable: bin\Release\frankapp.exe
> .\..\fltk-1.1.8\lib/libfltkimages.a
> (Fl_JPEG_Image.o):Fl_JPEG_Image.cxx:(.text+0xf9): undefined
> reference to `_jpeg_std_error'
>
>
>
> I already built all the libfltk.a, libfltkjpeg.a, libfltkimages.a
> libfltkpng.a libdltkz.a in both debug (_d.a) and release versions.
> The linker seems to complain that for the libfltkimages.a it is
> missing functions from libfltkjpeg.a.
>
> I put the directories for the libraries in Build options->release->
> search directores->linker. I even added an additional linker -L..\..
> \fltk-1.1.8\lib
>
This just sounds like you are linking in the wrong order. In general,
you need to list the object or lib that *uses* a function before the
lib that *provides* that function. Otherwise, the linker can think
the function is not needed and just skip it...
[ Direct Link to Message ] | |
|
| |