Re: [pygccxml-development] first try - no good
Brought to you by:
mbaas,
roman_yakovenko
|
From: Roman Y. <rom...@gm...> - 2006-04-13 21:13:32
|
On 4/14/06, Neal Becker <ndb...@gm...> wrote:
> A simple test:
>
> g++ -fsyntax-only -xc++ hello_world.hpp produces no error.
>
> parsing files - started
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/tmp/python-ByATVu.py", line 17, in ?
> mb =3D module_builder.module_builder_t(
> File
> "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", =
line
> 52, in __init__
> , cache )
> File
> "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", =
line
> 72, in __parse_declarations
> decls =3D reader.read_files( files, compilation_mode )
> File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.p=
y",
> line 149, in read_files
> return self.__parse_file_by_file(files)
> File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.p=
y",
> line 172, in __parse_file_by_file
> decls =3D reader.read_file( header )
> File "/usr/lib/python2.4/site-packages/pygccxml/parser/source_reader.py=
",
> line 164, in read_file
> raise error
> pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured while
> running GCC-XML: xml_find_template_parm encountered unsupported type
> bound_template_template_parm
> xml_find_template_parm encountered unsupported type
> bound_template_template_parm
> [repeat...]
Lets start.
I am using Debian 3.1. Almost latests CVS version of boost. I think this o=
ne
will become next release. I am using GCC-XML cvs version month or two month
old. Current version of cvs( =3D=3D preview ) pygccxml/pyplusplus.
I run GUI version of pypluspus, where I added to include paths boost locati=
on.
And here is the code generated by pyplusplus:
// std directories: []
// user defined directories: ['/home/roman/boost_cvs', '/home/roman/tmp']
#include "boost/python.hpp"
#include "hw.hpp"
namespace bp =3D boost::python;
BOOST_PYTHON_MODULE(pyplusplus){
bp::def( "Copy_int"
, &Copy_int
, ( bp::arg("in") )
, bp::default_call_policies() );
bp::def( "Copy"
, &Copy
, ( bp::arg("in") )
, bp::default_call_policies() );
}
So, can you try to describe your problem, one more time?
Thanks.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|