Welcome to the CHICKEN Scheme pasting service

pointer to enum, compiler warning pasted by retroj on Tue Apr 24 17:10:49 2012

(define-foreign-enum-type (exceptiontype int)
  (exceptiontype->int int->exceptiontype)
  ((UndefinedException) UndefinedException)
  ((WarningException) WarningException)
  ((ResourceLimitWarning) ResourceLimitWarning)
  ;; ... ellided
  ((ConfigureFatalError) ConfigureFatalError)
  ((PolicyFatalError) PolicyFatalError))

(define magick-get-exception
  (foreign-lambda c-string MagickGetException
                  (const magickwand)
                  (c-pointer exceptiontype)))

;; compiler output:

magickwand.c: In functionstub420’:
magickwand.c:122:1: warning: passing argument 2 of ‘MagickGetException’ from incompatible pointer type [enabled by default]
/usr/include/ImageMagick/wand/MagickWand.h:148:4: note: expected ‘enum ExceptionType *’ but argument is of type ‘int *’
  /usr/bin/csc -feature compiling-extension -setup-mode -k   -c -O3 -d1 -lMagickWand -C `pkg-config --cflags MagickWand` -L `pkg-config --
libs MagickWand` magickwand.scm -unit magickwand                                                                                         
magickwand.c: In functionstub420’:
magickwand.c:122:1: warning: passing argument 2 of ‘MagickGetException’ from incompatible pointer type [enabled by default]
/usr/include/ImageMagick/wand/MagickWand.h:148:4: note: expected ‘enum ExceptionType *’ but argument is of type ‘int *’
  /usr/bin/csc -feature compiling-extension -setup-mode -k   -s -O3 -d0 magickwand.import.scm -C `pkg-config --cflags MagickWand` -L `pkg-
config --libs MagickWand`                                                                                                                

no title pasted by zbigniew the dehisced on Tue Apr 24 20:03:35 2012

Try changing
(define-foreign-enum-type (exceptiontype int) ...) to
(define-foreign-enum-type (exceptiontype (enum "ExceptionType")) ...)

retroj, what if you try added by zbigniew the bare-knuckled on Thu Apr 26 23:17:24 2012

what if you try 

(define magick-get-exception
  (foreign-lambda c-string MagickGetException
                  (const magickwand)
                  (c-pointer "ExceptionType")))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure can be used to concatenate strings?
Visually impaired? Let me spell it for you (wav file) download WAV