problem using a custom exception class

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

 



I'm using gcc v3.4.1.

I've a custom exception class which I'm using in a library that compiles without any compiler errors/warnings.

When I attempt to use this library, I get:
  : undefined reference to `typeinfo for attribute_error'


My custom exception class, modeled using info from stdexcept, is:

class attribute_error : public std::exception
{
public:
explicit attribute_error(const std::string& attributeName) throw(); // used for missing attribute
explicit attribute_error(const std::string& attributeName, const std::string& msg) throw();
virtual ~attribute_error() throw() {}
virtual const char* what() const throw();
private:
std::string msg_;
};



Can someone point me to how to fix this?


[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