From: Foster T. B. <fbr...@ad...> - 2006-08-15 16:42:29
|
Hi Haroon, First off, welcome! And thanks for showing interest in GIL and the =20 Adobe Source Libraries. While I am not the primary developer of GIL =20 (I'll forward this to Lubomir and Hailin, who are) I suspect that =20 wrapping the #include expressions in extern "C" was the correct thing =20= to do, as they are not C++ libraries and would not fare well under C+=20 + name mangling conventions. I am puzzled, too, as to why you had to =20 make the change in the GIL headers themselves -- I'll leave that =20 question to be answered by the owners. Blessings, Foster On Aug 14, 2006, at 9:44 PM, Haroon Khan wrote: > 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 > > ----------------------------------------------------------------------=20= > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Adobe-source-devel mailing list > Ado...@li... > https://lists.sourceforge.net/lists/listinfo/adobe-source-devel -- Foster T. Brereton <=E1=BC=B0=CF=87=CE=B8=CF=8D=CF=82>< = Romans =20 3:21-26 A d o b e S o f t w a r e T e c h n o l o g y L a b "What 99 percent of programmers need to know is not how to build =20 components but how to use them." -- Alexander Stepanov |