Hi guys,
I really like Pocket HAL/Frog
and I'm working on a little project that implements a GUI. For this reason I like to use the Surface::Create method to create a surface from an existing memory location. But...
I can't use the Surface::Create(unsigned short *, unsigned, unsigned, unsigned) since the linker will bail with the following error:
I even tried subclassing Surface and using the constructor (which is protected), but again a linking error, this time it can't find the constructor
.
When I run DumpBin on the pockethal_arm.lib I notice the method (and constructor) are there, but the mangled names are a little different:
Notice the underscore. What I can tell from DumpBin is that the first parameter is defined as "unsigned __int16 *", but the linker is looking for "unsigned short *". Might it be that Pocket Hal has been compiled with a pre 2003 compiler that uses different namemangeling for __int16?
I really can't figure this out, and I would like to use the Create inside an existing memory location. Does any one experience similair problems?
I tried with VC++ .NET 2003, and .NET 2005 with no avail.
Or is it that I'm doing something completly wrong, which is weird since I can compile the samples so my setup is ok.
Thanks,
Robert
I really like Pocket HAL/Frog
I can't use the Surface::Create(unsigned short *, unsigned, unsigned, unsigned) since the linker will bail with the following error:
- Code:
unresolved external symbol
"public: static class PHAL::Surface * __cdecl PHAL::Surface::Create(unsigned short *,unsigned int,unsigned int,unsigned int)"
(?Create@Surface@PHAL@@SAPAV12@PAGIII@Z)
I even tried subclassing Surface and using the constructor (which is protected), but again a linking error, this time it can't find the constructor
When I run DumpBin on the pockethal_arm.lib I notice the method (and constructor) are there, but the mangled names are a little different:
- Code:
vc++ wants ?Create@Surface@PHAL@@SAPAV12@PAGIII@Z) but,
lib has ?Create@Surface@PHAL@@SAPAV12@PA_GIII@Z
Notice the underscore. What I can tell from DumpBin is that the first parameter is defined as "unsigned __int16 *", but the linker is looking for "unsigned short *". Might it be that Pocket Hal has been compiled with a pre 2003 compiler that uses different namemangeling for __int16?
I really can't figure this out, and I would like to use the Create inside an existing memory location. Does any one experience similair problems?
I tried with VC++ .NET 2003, and .NET 2005 with no avail.
Or is it that I'm doing something completly wrong, which is weird since I can compile the samples so my setup is ok.
Thanks,
Robert