Date: Sun, 26 Dec 1999 13:12:40 +0100 From: Marc Lehmann To: pgcc AT delorie DOT com Subject: Re: [2.95.3] c++ compiler problem ? Message-ID: <19991226131240.D4238@cerebro.laendle> Mail-Followup-To: pgcc AT delorie DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: ; from j.saito@wanadoo.fr on Sat, Dec 25, 1999 at 06:25:33PM +0100 X-Operating-System: Linux version 2.2.13 (root AT cerebro) (gcc version 2.95.1 19990816 (release)) Reply-To: pgcc AT delorie DOT com X-Mailing-List: pgcc AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, Dec 25, 1999 at 06:25:33PM +0100, j DOT saito AT wanadoo DOT fr wrote: > -I/usr/local/include/sensors/ -g -O2 -c MonitorSensors.cpp > MonitorSensors.cpp: In method `MonitorWindow::MonitorWindow()': > MonitorSensors.cpp:125: taking the address of a non-static member function > MonitorSensors.cpp:125: to form a pointer to member function, say > `&MonitorWindow::timer' > MonitorSensors.cpp: In method `gint MonitorWindow::timer()': > MonitorSensors.cpp:131: taking the address of a non-static member function > MonitorSensors.cpp:131: to form a pointer to member function, say > `&MonitorWindow::timer' > make[1]: *** [MonitorSensors.o] Error 1 > make[1]: Leaving directory `/usr/local/src/MonitorSensors-1.2/src' > make: *** [all-recursive] Error 1 > > I was told that it could be compiled with egcs 1.1.2. These are bugs in the code that 1.1.2 didn't flag. > Is there a quick fix for this failure ? Well, it depends on how easy it is to fix the code in question ;) You can try to make gcc more forgiving with the -fpermissive flag, but this only works for some minor bugs. -- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg AT opengroup DOT org |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |