[pygccxml-development] friend function, declared but not really
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2007-12-21 19:42:04
|
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. Thanks in advance, and merry christmas! :-) -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |