bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with two libraries


From: guy.maurel
Subject: Problem with two libraries
Date: Tue, 19 Feb 2002 13:41:42 +0100

Hello!

gcc version 2.95.3 20010315 (SuSE)

The code, only 3 lines:

#include <ncurses.h>
#include <cc++/thread.h>
main() {}

I get the not very verbose error:
> c++ detlef-1.c > a
In file included from detlef-1.c:2:
/usr/include/cc++/thread.h:189: syntax error before `;'

This might be a problem of the name "_lock" wich is use twice:
line 296 of "/usr/include/libio.h":
  _IO_lock_t *_lock;
line 189 of "/usr/include/cc++/thread.h":
        pthread_rwlock_t _lock;

BUT, if I change the order of the two first lines #include..., I don't get ANY 
errors.

So I whish to put questions:
1. could it be possible to get a "better" error in the first case?
2. why don't I get any error at the second case?
3. where is the person/the group I have to address to solve the naming conflict?

Thanks for helping.


Guy Maurel
DaimlerChrysler AG
Forschungszentrum (Research Institut)
Postfach 2360
89013 Ulm
Telefon: +49 731 505 2172        Fax: +49 731 505 4110


reply via email to

[Prev in Thread] Current Thread [Next in Thread]