Bug #2649
closedCompilation with DEBUG defined
100%
Description
When the DEBUG flag is defined the following compilation error is produced...
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
Lines referenced are:
#ifdef DEBUG
jmethodID debugMID = environ->env->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
environ->env->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
In order to make these lines to compile I changed the code to....
#ifdef DEBUG
jmethodID debugMID = (*(environ.env))->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
(*(environ.env))->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
Updated by O'Neil Delpratt almost 9 years ago
- Category set to C API
- Assignee set to O'Neil Delpratt
- Fixed in version set to 1.0.0
Updated by O'Neil Delpratt almost 9 years ago
- Status changed from New to In Progress
Thanks for letting us know about this build error. We will investigate it and report back shortly.
You should be fine to compile Saxon/C without using the DEBUG flag.
Updated by O'Neil Delpratt over 8 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Found in version set to 1.0.0
- Fixed in version deleted (
1.0.0)
Bug has been fixed and committed to subversion
Updated by O'Neil Delpratt over 8 years ago
- Status changed from Resolved to Closed
- Fixed in version set to 1.0.1
Bug fix applied in the Saxon/C 1.0.1 maintenance release.
Please register to edit this issue