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

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Thu Jul 15 14:27:30 UTC 2010


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

           Summary: Converting version 0.11 from C to C++ for use with
                    MSVC++
           Product: jbig2dec
           Version: trunk
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Build Process
        AssignedTo: masaki.ushizaka at artifex.com
        ReportedBy: Tfobear at hotmail.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


Created an attachment (id=6488)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6488)
VS2008 Solution for JBig2Dec C++

A Visual Studio 2008 solution is included in the attachment. The environment is
not set correctly for use with this configuration. The errors I am getting are
in stdio.h -

error C3114: 'MustCheck': not a valid named attribute argument 
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h    189
error C3114: 'Null': not a valid named attribute argument 
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h    189
error C3114: 'Valid': not a valid named attribute argument 
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h    189

I follow the error into "sal.h" the attribute arguments are surrounded by -

#ifdef _USE_ATTRIBUTES_FOR_SAL

when I add this to the command line -

/D "_USE_ATTRIBUTES_FOR_SAL=0"

it only generates different errors, something along the line of functions in
stdio getting redifined with different linkage.

This is as far as I have gotten, any help on this issue is Mucho Apreciado.

-CodeBear

-- 
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