[Ham-Mac] Update on the ARRL Logbook of the World (LoTW) electronic QSLing project

[email protected] [email protected]
Sun, 1 Jun 2003 20:02:16 -0500


On Saturday, May 31, 2003, at 10:38  PM, Steven M.Palm wrote:
>  Ugly... :-(   I just tried to compile the current CVS tree, and am 
> getting weird errors:
>
> g++ -O0 -g3 -Wall -I. -I../include -I/src/zlib 
> -I/usr/local/ssl/include -I/usr/local/include  -DHAVE_CONFIG_H -c -o 
> gen_crq.o gen_crq.cpp
> cc1plus: warning: changing search order for system directory 
> "/usr/local/include"
> cc1plus: warning:   as it has already been specified as a non-system 
> directory
> In file included from gen_crq.cpp:28:
> tqslexc.h:26: looser throw specifier for `virtual const char* 
> myexc::what()
>    const'
> /usr/include/gcc/darwin/3.1/g++-v3/exception:57:   overriding `virtual 
> const
>    char* std::exception::what() const throw ()'
> tqslexc.h:27: looser throw specifier for `virtual myexc::~myexc()'
> /usr/include/gcc/darwin/3.1/g++-v3/exception:54:   overriding `virtual
>    std::exception::~exception() throw ()'
> make: *** [gen_crq.o] Error 1


  I found this obscure bit through a google search:

  http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg01181.html

  And made a few minor changes to tqslexc.h to the class definition:

class myexc : public std::exception {
public:
         myexc(const std::string& err) : std::exception() { _err = err; }
         myexc(const myexc& x) { _err = x._err; }
         virtual const char *what() const throw() { return _err.c_str(); 
}
         virtual ~myexc() throw() {}
private:
         std::string _err;
};

  And that gets past the errors...  There are more, still working on it.

-----------------------
  - Steven M. Palm
  - Ham Radio Call: N9YTY
  - Attempts to make thine own star shine shall lead thee into darkness.
-----------------------