Mail Archives: pgcc/1998/08/01/23:43:02
On Fri, Jul 31, 1998 at 10:59:51AM -0400, lambache AT biochem DOT mpg DOT de wrote:
>
> >From pgcc I get the following error message:
>
> numerik.cxx: In method `void vector_integral::_driver(void (vector_integral::*)(
> ), double *)':
> numerik.cxx:540: must use .* or ->* to call pointer-to-member function in `metho
> d (...)'
> make: *** [numerik.o] Error 1
> emx-gcc 2.7.2.1 compiles this without even a warning
thats because gcc-2.7.2.1 compiles almost everything, even incorrect c++
programs. egcs (and newer pgcc versions) usually don't, so you sometimes get
more errors.
But, if thats the only message you get, your program is one of the seldom
almost-correct c++ programs ;)
> Frankly, I do not even understand the error message. I tried to fumble around with
> typecasts, but this didn't yield anything besides other error messages 8-)
(this->*method)()
should work.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
- Raw text -