Re: [pygccxml-development] inline asm
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-08-17 04:14:12
|
On Sun, Aug 17, 2008 at 4:59 AM, Thomas Rab <tho...@gm...> wrote: > Sorry for not being more clear. Yes, I suppose I did mean if gccxml > supports inline assembly. I thought the answer would be no though, as I has > checked if GCC supported inline asm and it looks like it does, but you need > to do some things before it's able to work. I didn't really read into detail > though. Anyway, that is fine. I can exclude the function. > I'll try to explain the header problem more throughly. You answered the > first part for me Matthias, thanks. I hadn't actually checked if it was in > another namespace (doh!), I was trying to find the correct syntax earlier > though. Can I do this for instance: > inlineASM = mb.namespace("foo").class_("NxMath").member_function("bar") > inlineASM.exclude() > 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' > > I get this error whether or not I exclude the function (the way I had shown > in the previous post). So I'm guess the problem is probably with namespaces > and gccxml can not find the function I'm giving it. Sorry if any of these > are silly questions. I'm still learning how to use py++ and I've never used > GCC before (I've always used Microsoft compilers). GCC surely has some > global define like WIN32 and LINUX to determine OS, does it not? I don't > think that's a problem though. At least I'm not getting any errors related > to it. The errors I posted are the only errors I'm getting at this point. > Hopefully I was a bit more clear this time :) - Tom If I understand right, you are not able to compile your code with gccxml and the reason is "_asm" function usage. I think, that this is a bug in gccxml and it could be fixed by Brad King, gccxml author. I suggest you to create small example and send it to him ( http://www.gccxml.org/mailman/listinfo/gccxml ) The current work-around is to move\comment the function body. HTH -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |