From: Haroon K. <har...@gm...> - 2006-08-15 04:44:18
|
Hi, Today is my first day of using GIL, and I was trying to compile and link the jpeg, png, and tiff libraries for a test program based on the sample program provided on the website. I kept getting linker errors, e.g. ... 1>hello_world.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) 1>hello_world.obj : error LNK2001: unresolved external symbol "void __cdecl jpeg_stdio_src(struct jpeg_decompress_struct *,struct _iobuf *)" (?jpeg_stdio_src@@YAXPAUjpeg_decompress_struct@@PAU_i .... until I went and edited the GIL header files and enclosed the #includ files for the jpeg, tiff, and png files with extern "C". Is this the correct way of doing this? or is there some build option in the libraries that I need to set. I've already downloaded and created the static libraries for jpeg, tiff and png libs. I'm using Windows XP, and MSVC8. Thanks, Haroon |