unqualified-id?

B

bisforbenson

I just upgraded to gcc 4. My code used to compile in gcc 3.3. Now i
get:

/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_deque.h:
In member function 'void std::_Deque_base<_Tp,
_Alloc>::_M_initialize_map(size_t)':
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_deque.h:452:
error: expected unqualified-id before '(' token
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/deque.tcc:
In member function 'void std::deque<_Tp,
_Alloc>::_M_reallocate_map(size_t, bool)':
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/deque.tcc:747:
error: expected unqualified-id before '(' token


I don't even use a deque! I tried searching the web, but only found
unanswered postings like mine. Is there a quick fix?

TIA,
benson
 
C

CK

It might be helpfull if you can post the code and complete trace of
error. I guess you are using some header file in your code which is
internally includes the deque.

mukesh
 
M

Moonlit

Hi,

Got the same problem a while back. What I did (it isn't a real solution of
course) is reshuflle the header files. Apparently it makes a difference
which header you include first (which theoratically shouldn't make a
difference of course).

..



--


Regards, Ron AF Greve

http://moonlit.xs4all.nl
 
B

bisforbenson

Removing some headers seemed to work... I wish there was a real
answer, but oh well. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top