[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #2128] Weird troubles with iostream and commonc++
From: |
Elizabeth Barham |
Subject: |
Re: [bug #2128] Weird troubles with iostream and commonc++ |
Date: |
04 Oct 2003 23:26:04 -0500 |
> Summary: Weird troubles with iostream and commonc++
>
> Original Submission: The following snippet is the minimum of code needed to
> display the problem:
> #include <cc++/digest.h>
> #include <iostream>
> #include <string>
> int main(){
> const string &test("d");
> cout << test << endl;
> }
In trying to figure why this is occurring, I changed the order of the
includes and an odd error shows up:
#include <iostream>
#include <cc++/digest.h>
#include <string>
[ ... ]
In file included from ../include/cc++/digest.h:54,
from tester.cpp:2:
../include/cc++/thread.h:318: syntax error before `;'
Which is:
#ifdef HAVE_PTHREAD_RWLOCK
pthread_rwlock_t _lock; // HERE
#else
Mutex mutex;
#endif
and my guess is that pthread_rwlock_t is not defined and in the
pre-processor dump I could not find it being defined.
I realize this may not have any direct relevance to the situation at
hand but it seems a bit peculiar.
Sincerely,
Elizabeth