PDA

View Full Version : linking errors


chingching
04-19-2006, 10:18 PM
I get these unresolved external symbol...can anyone pls help me see what's going on? A lot of thanks...

Linking...
CJPEGFile.obj : error LNK2001: unresolved external symbol "unsigned char __cdecl jpeg_finish_decompress(struct jpeg_decompress_struct *)" (?jpeg_finish_decompress@@YAEPAUjpeg_decompress_st ruct@@@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl jpeg_read_scanlines(struct jpeg_decompress_struct *,unsigned char * *,unsigned int)" (?jpeg_read_scanlines@@YAIPAUjpeg_decompress_struc t@@PAPAEI@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "unsigned char __cdecl jpeg_start_decompress(struct jpeg_decompress_struct *)" (?jpeg_start_decompress@@YAEPAUjpeg_decompress_str uct@@@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "int __cdecl jpeg_read_header(struct jpeg_decompress_struct *,unsigned char)" (?jpeg_read_header@@YAHPAUjpeg_decompress_struct@@ E@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "void __cdecl jpeg_stdio_src(struct jpeg_decompress_struct *,struct _iobuf *)" (?jpeg_stdio_src@@YAXPAUjpeg_decompress_struct@@PA U_iobuf@@@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "void __cdecl jpeg_CreateDecompress(struct jpeg_decompress_struct *,int,unsigned int)" (?jpeg_CreateDecompress@@YAXPAUjpeg_decompress_str uct@@HI@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "void __cdecl jpeg_destroy_decompress(struct jpeg_decompress_struct *)" (?jpeg_destroy_decompress@@YAXPAUjpeg_decompress_s truct@@@Z)
CJPEGFile.obj : error LNK2001: unresolved external symbol "struct jpeg_error_mgr * __cdecl jpeg_std_error(struct jpeg_error_mgr *)" (?jpeg_std_error@@YAPAUjpeg_error_mgr@@PAU1@@Z)
Debug/oglu_collision_detection_and_response.exe : fatal error LNK1120: 8 unresolved externals

mysticman
04-20-2006, 12:44 AM
you need the library jpeg...

http://www.programmersheaven.com/zone10/cat453/14954.htm

http://apodeline.free.fr/DOC/libjpeg/libjpeg.html

chingching
04-20-2006, 08:41 AM
ya...thanks you guy....