[pygccxml-development] What am I doing wrong?
Brought to you by:
mbaas,
roman_yakovenko
|
From: Neal B. <ndb...@gm...> - 2006-04-17 21:12:00
|
OK, back to my previous test. gccxml cvs is now updated so the problem I
reported last week is fixed (thanks!)
But still no luck. Any hints? (I have to say pyplusplus error messages could
probably be more helpful)
gccxml now runs without errors.
But I get this:
parsing files - started
Reading project files: file by file
Reading source file: [hello_world.hpp].
File has not been found in cache, parsing...
Command line for GCC-XML: /usr/bin/gccxml -I"." -I"/usr/local/src/boost.cvs"
"hello_world.hpp" -fxml="/tmp/tmp_TUhxm.xml"
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/tmp/python-W1AaN3.py", line 17, in ?
mb = module_builder.module_builder_t(
File
"/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", line
76, in __init__
, cache )
File
"/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", line
101, in __parse_declarations
decls = reader.read_files( files, compilation_mode )
File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.py",
line 149, in read_files
return self.__parse_file_by_file(files)
File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.py",
line 172, in __parse_file_by_file
decls = reader.read_file( header )
File "/usr/lib/python2.4/site-packages/pygccxml/parser/source_reader.py",
line 164, in read_file
raise error
KeyError: 'name'
This is from 'generate_code.py', which is this:
import os
#from environment import settings
from pyplusplus import module_builder
mb = module_builder.module_builder_t(
files=['hello_world.hpp'],include_paths=['/usr/local/src/boost.cvs'],compilation_verbose=True
)
Here is hello_world.hpp:
|