471,047 Members | 1,242 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 software developers and data experts.

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 3657
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.