Re: [pygccxml-development] inline asm
Brought to you by:
mbaas,
roman_yakovenko
From: Thomas R. <tho...@gm...> - 2008-08-17 12:55:55
|
On Sun, Aug 17, 2008 at 3:41 AM, Matthias Baas <mat...@gm...>wrote: > Thomas Rab wrote: > > earlier though. Can I do this for instance: > > inlineASM = mb.namespace("foo").class_("NxMath").member_function("bar") > > inlineASM.exclude() > > Well, assuming that gccxml could parse the files then yes, this should > work. But the problem is that your script never gets to this line > because of the errors you are seeing. > > > Right now because of this function I can't generate any code at all. > > Here is the error I get: > > > > C:/Program Files/NVIDIA Corporation/NVIDIA PhysX > > SDK/v2.8.1/SDKs/Foundation/include/NxMath.h: In > > static member function `static void NxMath::sinCos(float, NxF32&, > > NxF32&)': > > C:/Program Files/NVIDIA Corporation/NVIDIA PhysX > > SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:744: error: ` > > _asm' undeclared (first use this function) > > C:/Program Files/NVIDIA Corporation/NVIDIA PhysX > > SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:744: error: (Each > > undeclared identifier is reported only once for each function it > appears > > in.) > > C:/Program Files/NVIDIA Corporation/NVIDIA PhysX > > SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:744: error: syntax > > error before `local' > > You didn't post the full error message (I'm sure there was something > before or after that) but I'm assuming you got that error when > *generating* the Python binding source code (and not when compiling them). > Py++ runs gccxml to parse the header files when you create the module > builder object. If gccxml cannot parse the files you will get an error > and your script terminates. This is why the code where you try to > exclude the function will never get executed. Excluding a function > doesn't mean it will be excluded from the parsing step, it rather means > that the function will be excluded from the Python bindings. > So before you can actually start working with Py++ you have to make sure > that gccxml is able to parse the header files properly. > > - Matthias -<https://lists.sourceforge.net/lists/listinfo/pygccxml-development> > Ah, that's where I got confused. I misunderstood exclude's function. I thought it was supposed to exclude it from parsing. Thanks for clearing that up! -Tom |