On Dec 21, 2007 9:42 PM, Gustavo Carneiro <gjc...@gm...> wrote:
> I am scanning a header file that contains something like:
>
> namespace ns3 {
> class InterfaceId
> {
> [...]
> private:
> friend InterfaceId MakeObjectInterfaceId (void);
> [...]
> };
> }
>
> The function "InterfaceId MakeObjectInterfaceId (void)" is defined in the
> .cc file only, but not really declared anywhere in the .h file, only that
> one time with 'friend'.
>
> (py)gccxml is reporting this function to me, as if it was a normal
> declaration. Then I generate a wrapper for it, but the code does not
> compile:
>
> debug/bindings/python/ns3module.cc: In function 'PyObject*
> _wrap_ns3MakeObjectInterfaceId()':
> debug/bindings/python/ns3module.cc:2840: error: 'MakeObjectInterfaceId' is
> not a member of 'ns3'
>
> Any tips on how I could avoid this issue are most welcome.
Right now I have no idea. I can suggest one very expensive work around
- to parse the line that contains the declaration.
May be you should introduce ignore tag for such cases?
Another idea could be to check GCC declarations tree, may be it
contains some information GCCXML doesn't dump.
> Thanks in advance, and merry christmas! :-)
You are welcome and thank you.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|