[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA: SPICE GUI



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