* Hendrik Sattler [EMAIL PROTECTED] [050708 02:48]:
Hi Hendrik, all,
thank you for your responses. :-)
Cited the wrong file for pthread_t definition :-/
It's
/usr/include/bits/pthreadtypes.h:typedef unsigned long int pthread_t;
:-)
Still, no casting is needed
Yes, it's true that no
Hi,
first of all: if this is not the appropriate list for this kind
of question, please give me pointer to better one.
I am having problems with rebuilding my dcmtk package with g++
4.0 on Sid. The problem seems to be related to type casting
between pthread_t and unsigned long int types and
On Thu, Jul 07, 2005 at 11:57:23PM +0200, Juergen Salk wrote:
dummy = reinterpret_cast unsigned long (a_thread);
dummy = (unsigned long)(a_thread);
{static,dynamic,reinterpret}_cast are for pointers only.
/* Steinar */
--
Homepage: http://www.sesse.net/
--
To UNSUBSCRIBE, email to
On Thu, 2005-07-07 at 23:57 +0200, Juergen Salk wrote:
Hi,
first of all: if this is not the appropriate list for this kind
of question, please give me pointer to better one.
I am having problems with rebuilding my dcmtk package with g++
4.0 on Sid. The problem seems to be related to type
On Fri, Jul 08, 2005 at 12:06:32AM +0200, Steinar H. Gunderson wrote:
{static,dynamic,reinterpret}_cast are for pointers only.
Oops, I was wrong there, of course. You can use static_cast if you'd like.
For simpler types (ie. those with only one word) you can use
type(expression) as well, just
I demand that Brian M. Carlson may or may not have written...
On Thu, 2005-07-07 at 23:57 +0200, Juergen Salk wrote:
[snip]
void *thread_func(void *arg) {
sleep(3);
pthread_exit(0);
You are also neglecting to return a value here. You must always return a
value in a non-void
6 matches
Mail list logo