Function pointer problems

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

 



Something changed with function pointers and I either missed it when I
browsed the release notes or just did not understand what I reading. The
obligatory google search did not provide any help either.

Details:
g++ --version == 
g++ (GCC) 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


g++ -g -O2 -fPIC -fno-common ... -c -o a.o a.cxx ==
b.h:64: error: default arguments are only permitted for function
parameters

where a.cxx includes b.h which contains and line 64 ==
int (*p_func)(char *pc, info_s *pi=NULL, result_s *pr=NULL); 

This compiled wonderfully up to this version of g++. Those defaults are
parameters to a function so it seems the compiler is in error or I am --
I would bet on the latter. However, I am still stuck with how to change
the syntax to keep the default values and get rid of the errors from g
++.

Any and all help is appreciated.

-- 
Al Niessner
818.354.0859

All opinions stated above are mine and do not necessarily reflect those
of JPL or NASA.

--------
|  dS  | >= 0
--------


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux