help-gplusplus
[Top][All Lists]
Advanced

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

Re: strange error "changes meaning ..."


From: jk
Subject: Re: strange error "changes meaning ..."
Date: Sat, 29 Jan 2005 19:59:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Ulrich Eckhardt wrote:
jk wrote:

I am having es very strange error which I do not understand

threadform.h:44: error: declaration of `Consumer ThreadForm::Consumer'
thread.h:48: error: changes meaning of `Consumer' from `class Consumer'
t


I guess there followed a 'to ...'.
Give us the whole error-message and create a minimal example and someone
might take a look at it. But first, do your part, just dumping a lot of
files into a newsgroup is not the ways things work Here(tm).

Uli

Well there was not much more and the example where it occurs is already minimal (see my previous attachment :) - I cannot reduce the example .. would be nice if you could have a look on it (in particular the files:

threadform.cpp and thread.h - the others seem to be ok!

here again the error message (complete)
snippet--------------------------------------------
/home/kampmann/tests/qtrolltec/ipc/semaphore->make
/usr/lib/qt3/bin/uic threadform.ui -o threadform.h
g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_THREAD_SUPPORT -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/include -I/usr/lib/qt3/include -o main.o main.cpp
In file included from main.cpp:2:
threadform.h:44: error: declaration of `Consumer ThreadForm::Consumer'
thread.h:48: error: changes meaning of `Consumer' from `class Consumer'
threadform.h:45: error: declaration of `Producer ThreadForm::Producer'
thread.h:41: error: changes meaning of `Producer' from `class Producer'
make: *** [main.o] Error 1
snippet===================================================

thank you ...
Jörg
--
================= lat=52.35°N - lon=10.25°E ======================
http://www.ibk-consult.de

reply via email to

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