Pbarray.cpp not compiling [message #118755] |
Wed, 01 September 2004 19:11 |
Eclipse User |
|
|
|
Originally posted by: jm42163jm.yahoo.com
I am using mingw32 (gcc3.2.3) within eclipse 3.0CDT. The error I am getting
is...
In file included from C:/mac/dev/pbnitest/SDK/PBNI/include/pbni.h:822,from
.../SDK/PBNI/src/pbarray.cpp:22:
C:/mac/dev/pbnitest/SDK/PBNI/include/pbarray.h:39: ISO C++ forbids
declaration of `ValueType' with no type
C:/mac/dev/pbnitest/SDK/PBNI/include/pbarray.h:39: cannot declare member
`PBValueTraits<v>::ValueType' within `PBUnboundedArrayCreator<T>'.
..
..
It appears that the compiler views the typedef as a class memeber
declaration. Why?? Does the syntax look correct?? Should I be tweeking
PBNI code directly???
Here is a part of the code (pbarray.h)
template <pbvalue_type T>
class PBUnboundedArrayCreator
{
typedef TYPENAME PBValueTraits<T>::ValueType ValueType;
..
..
|
|
|
Powered by
FUDForum. Page generated in 0.09227 seconds