Re: [pygccxml-development] size_t problem
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-08-16 06:51:13
|
On Sat, Aug 16, 2008 at 5:55 AM, Thomas Rab <tho...@gm...> wrote: > I'm currently trying to wrap a header and I had a problem whenever it uses > the size_t type. It's currently reading it as a variable as it doesn't > understand that it's a type. I know this is usually something that the > compiler (Microsoft's C++ compiler) knows. I located a header with what I > thought was the definition, but it still wouldn't compile. I believe cstddef > was the header the definition was in. Here is the line, if this helps any: > > typedef void (*NewtonSerialize) (void* serializeHandle, const void* buffer, > size_t size); > > and here is the error I get: > > Error occured while running GCC-XML: C:/Program > Files/NewtonSDK/sdk/Newton.h:89: error: type specifier omitted for parameter > `size_t' > > Which from my understanding means it doesn't understand it's a type (as it's > not specified), so it thinks it's a parameter, with no type specified. > Note this is my first time wrapping a header that is not mine, so I don't > really know all the gotchas or much about py++ yet (or even boost.python for > that matter). Any help would be appreciated :) -Tom This is exactly what happen to me. I added include to stddef.h file and now code compiles fine. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |