[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA: SPICE GUI
Hi all,
I am doing the development on a PII 366 laptop running Redhat 7.3 which
has gcc v2.96 (as Evan guessed). This allows me to do the development
on the train to and from work. The down side is that I must use older
versions of Linux because of the laptop's limited supply of CPU cycles.
I've modified the code to fix the default argument bug, thanks for the
feedback.
After untar'ing the gspiceui file enter "make config" which creates
directories such as src/obj. This is outlined in the INSTALL. (It's
good to see that I'm not the only one who refers to instructions as a
last resort.)
Mike
On Thursday 05 August 2004 18:25, Evan Lavelle wrote:
> Bill Cox wrote:
> > Hi, Mike.
> >
> > I'm trying to install your spice GUI. The first problem was trivial:
> > the src/obj directory does not exist, so I had to create it. The next
> > one is probably a g++ compatibility thing:
> >
> > FrmMain.cpp:662: error: default argument given for parameter 1 of `bool
> > FrmMain::bImportSchem(const char*)'
> > FrmMain.hpp:132: error: after previous specification in `bool
> > FrmMain::bImportSchem(const char*)'
> > make[1]: *** [obj/FrmMain.o] Error 1
> >
> > I'm using g++ version 3.3.3, which comes with Fedora Core 2.
>
> I haven't looked at the code, but I'm guessing that Mike compiled on gcc
> 2.96 or similar. This allowed a default argument for a function param to
> be set both in the function's declaration and definition. This isn't
> kosher C++, and gcc 3+ fixed it, so it can be specified in either the
> decln or the defn., but not both. You'll need to edit out all the
> defaults in one or the other. I prefer to keep them in the definition,
> for documentation, but this can cause problems (I forget what) so
> they're probably best kept in the declaration, in the header file.
>
> Evan