Re: [pygccxml-development] Compilation problem
Brought to you by:
mbaas,
roman_yakovenko
From: Vincent F. <vin...@gm...> - 2008-09-22 10:17:49
|
Roman helped me solving the problem. In fact I had two classes with the same name in different namespaces juste like this ns1::ns2::A ns1::ns2bis::A with ns1::ns2bis::A extends ns1::ns2::A When I called ns1::ns2bis::A constructor it just called ns1::ns2::A one. I used to rename these classes (prefixing it whith their namespace name) but the wrappers in boost had allways the same name. I prefixed the wrappers name just like I did with the classes and it just works fine now. Here is a solution to prefix both class name and wrapper name with the namespace-name : # Prefixes the classes and wrappers with their namespace name def rename_in_namespace(mb, nameList): for namespaceName in nameList: nspace = mb.namespace('postLib').namespace(namespaceName, recursive=False) for clz in nspace.classes(): clz.rename(namespaceName.capitalize() + clz.name.capitalize()) clz.wrapper_alias = 'wrapper_' + namespaceName.capitalize() + clz.name.capitalize() I hope that it could help someone. 2008/9/19 Roman Yakovenko <rom...@gm...> > On Fri, Sep 19, 2008 at 10:55 AM, Vincent Ferries > <vin...@gm...> wrote: > > Here is the py++ trace : > > > > ... > > > > Nothing which deals with generic or nastran database. > > > > Any idea? > > No. I suggest you to send me privately the original header files, you > try to wrap and your Py++ script, the whole script. > > I am sure you don't tell me some important detail. I need them to > solve your problem. > > P.S. you don't have to wary about confidentiality > you really have to send me the original files and script > > -- > Roman Yakovenko > C++ Python language binding > http://www.language-binding.net/ > |