[fetter-devel] Windows.h with Verrazano

Frank Buss fb at frank-buss.de
Fri Dec 30 22:50:01 UTC 2005


I've posted this to comp.lang.lisp and Kenny suggested to post it to this
mailing list, too. Meanwhile I've tried the MinGW windows.h, the setting
"--gccxml-compiler msvc71" but nothing works. I don't know, if this project
is still alive, but here is my problem:

I've installed Verrazano from CVS from today and the "simple" testsuite
works with Lispworks after fixing some path problems. Then I've copied the
windows.h from Visual Studio C++ 7.0 and all other header files to the
"simple" directory and changed the simple-binding file like this:

(defbinding "simple-library"
	    (nicknames "simple")
            (flags "-I/data/projects/asdf/verrazano/testsuite/simple -D
WIN32 -D NDEBUG -D _WINDOWS -D _MBCS")
	    (include "windows.h")
	    (export "don't care")
	    (override "not supported yet"))

I tried to generate it like this:

(use-package "VERRAZANO")
(create-binding 
  (setup-build "/Programme/gccxml/bin/release/gccxml.exe"
			 "/tmp/")
  "/data/projects/asdf/verrazano/testsuite/simple/simple.binding"
  "/data/projects/asdf/verrazano/testsuite/simple/simple-library.lisp"
  :cffi-backend
  t)

It needs some minutes and  vzntemp.cpp, vzntemp.mac (2.7 mb) and vzntemp.xml
(7.1 mb) are generated, but then it says:

1     DEFINES NAMESPACE-TYPE ::
1     ALLOCATES NAMESPACE-TYPE :: named ::
1 NAMESPACE-TYPE ::


NIL

and the contents of simple-library:

(defpackage "SIMPLE-LIBRARY" (:use #:CFFI) (:nicknames "SIMPLE") (:export))

(in-package "SIMPLE-LIBRARY")
(asdf:operate 'asdf:load-op 'verrazano-support)
(cl:progn)

Is this a bug? How can I generate the bindings for windows.h?

-- 
Frank Buss, fb at frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de




More information about the fetter-devel mailing list