[pygccxml-development] Scanning pure C header files
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2008-02-16 18:25:08
|
Hi. I am looking at scanning with pygccxml a pure C header file, that looks like this: #ifndef __HELLO_H__ #define __HELLO_H__ #ifdef __cplusplus extern "C" { #endif void hello_print(const char *message); double hello_sum(double x, double y); #ifdef __cplusplus } #endif #endif /* __HELLO_H__ */ My current code, that woks for C++ headers perfectly, fails with this pure C header file: File "../pybindgen/gccxmlparser.py", line 416, in parse_init self.module_namespace = declarations.get_global_namespace( self.declarations) File "/usr/local//lib/python2.5/site-packages/pygccxml/declarations/algorithm.py", line 170, in get_global_namespace raise RuntimeError( "Unable to find global namespace." ) RuntimeError: Unable to find global namespace. Any tips on what I should be using instead of get_global_namespace() to get the definitions? Thanks in advance. -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |