[gs-bugs] [Bug 691461] Converting version 0.11 from C to C++ for use with MSVC++

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Sat Jul 17 08:17:34 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691461

--- Comment #4 from Ken Sharp <ken.sharp at artifex.com> 2010-07-17 08:17:33 UTC ---
(In reply to comment #3)


> The latest error I get is in my DLL that references the library.
> 
> error LNK2019: unresolved external symbol "int __cdecl
> jbig2_image_set_pixel(struct _Jbig2Image *,int,int,int)"
> (?jbig2_image_set_pixel@@YAHPAU_Jbig2Image@@HHH at Z) referenced in function
> _jbig2_image_compose_unopt    staticpdf.lib
> 
> notice I have already extern "C" the function _jbig2_image_compose_unopt int he
> file jbig2_image.c

There's a mismatch in function declarations between the prototype in
jbig2_image.h:

int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, int value);

and the actual function declaration in jbi2_image.c:

int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, bool value)

Note that one declares 'value' as a bool, the other as an int. If you make
these match I think your compilation will work.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list