Re[2]: [Dev-C++] Problem with libjpeg in Dev C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-08-06 11:30:17
|
Are you compiling a c++ program? The jpeg library is in C. Did you
remember to specify
extern "C" {
#include xxx
}
when including the jpeg include files?
As you can see, the linker doesn't just complain about
missing symbol _jpeg_std_error, but actually knows about what parameter
types the function takes. This is because your source code is trying to
call the jpeg functions in C++ mode, i.e. with name-mangled external
references.
/Per W
> Thanks for your reply!
>
> Your Message: (Sunday, August 03, 2003, 10:51:28 AM)
>
> OB> Dennis M=F6hlmann wrote:
>
> >> Oops, didn't know the linker can any other error messages than this =
one (never
> >> received a different error so far...)
> >>
> >> (hope this doesn't get wrapped...)
> >>
> >> g++.exe ../_obj/BlackMagic3D.o ../_obj/world.o ../_obj/entity.o ../_ob=
j/engine.o ../_obj/model.o ../_obj/winmsg.o ../_obj/viewport.o ../_obj/keyb=
oard.o ../_obj/renderer.o ../_obj/image.o -o
> >> "..\_exe\BlackMagic3D.exe" -L"C:/Programme/Dev-Cpp/lib" -mwindows -lop=
engl32 -lglu32 -lglaux -lwinmm -ljpeg
> >>
> >> ../_obj/image.o(.text+0x68e):image.cpp: undefined reference to `jpeg_s=
td_error(jpeg_error_mgr*)'
> >> ../_obj/image.o(.text+0x6ad):image.cpp: undefined reference to `jpeg_C=
reateDecompress(jpeg_decompress_struct*, int, unsigned)'
> >> ../_obj/image.o(.text+0x6c2):image.cpp: undefined reference to `jpeg_s=
tdio_src(jpeg_decompress_struct*, _iobuf*)'
> >> ../_obj/image.o(.text+0x6d6):image.cpp: undefined reference to `jpeg_r=
ead_header(jpeg_decompress_struct*, int)'
> >> ../_obj/image.o(.text+0x6e8):image.cpp: undefined reference to `jpeg_s=
tart_decompress(jpeg_decompress_struct*)'
> >> ../_obj/image.o(.text+0x7f0):image.cpp: undefined reference to `jpeg_r=
ead_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)'
> >> ../_obj/image.o(.text+0x828):image.cpp: undefined reference to `jpeg_f=
inish_decompress(jpeg_decompress_struct*)'
> >> ../_obj/image.o(.text+0x83a):image.cpp: undefined reference to `jpeg_d=
estroy_decompress(jpeg_decompress_struct*)'
>
> OB> Well, it sais, it has undefined references of jpeg functions.
> OB> I have no idea though why it has them, as the jpeg library has these
> OB> functions.
> OB> Maybe you should try to recompile the jpeg library from the code.
>
> OB> --
> OB> Greetings,
> OB> Bal=E1zs
>
> --
> Best regards,
> Dennis mailto:lis...@da...
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/=
01
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|