468,512 Members | 1,426 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

types

Hello

this error:

src\Terrain\TerrainManager.cpp:47: error: `pthread_t' does not name a type

was declared like:

static int pthread_t;// threadQGT; ///< QGT maintenance
thread
static int pthread_rwlock_t;// rwlockQgtBusy; ///< RW lock for qgtBusy
list

and defined:

pthread_t CTerrainManager::threadQGT;

What is going on here? I cant find any threadQGT...

Thanks

Michael


Aug 6 '06 #1
2 3606
Michael Sgier wrote:
Hello

this error:

src\Terrain\TerrainManager.cpp:47: error: `pthread_t' does not name a type
>
What is going on here? I cant find any threadQGT...
The real issue is that you've not included a declaration of
pthread_t. You're missing an include file somewhere (which
is not a standard C++ thing).
>
Aug 6 '06 #2

"Michael Sgier" <sg***@nospam.chwrote in message
news:39***************************@news.hispeed.ch ...
Hello

this error:

src\Terrain\TerrainManager.cpp:47: error: `pthread_t' does not name a type
This is true of the code below.
>
was declared like:

static int pthread_t;// threadQGT; ///< QGT maintenance
This defines a type 'int' object whose identifier
is 'pthread_t'. I.e. the object's name (not it's
type) is 'pthread_t'.
thread
static int pthread_rwlock_t;// rwlockQgtBusy; ///< RW lock for qgtBusy
list

and defined:

pthread_t CTerrainManager::threadQGT;

What is going on here? I cant find any threadQGT...
You're trying to use an identifier as a type. This is
like writing:

int i; // define type 'int' object named 'i'

i j; // define a type 'i' object named 'j'.

It just makes no sense.

-Mike
Aug 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John Dibling | last post: by
5 posts views Thread by Andy Skypeck | last post: by
8 posts views Thread by Shailesh | last post: by
188 posts views Thread by infobahn | last post: by
5 posts views Thread by Zach | last post: by
58 posts views Thread by jacob navia | last post: by
14 posts views Thread by Lane Straatman | last post: by
159 posts views Thread by Bob Timpkinson | last post: by
3 posts views Thread by sophia.agnes | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.