Re: Static Const

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

 



Hi Thomas,

You cannot initialize non-integral static data members inside the class.

Try this:

// .h file
class RemoteManager:public Runnable{
   ...
public:
   ...
-->  static const char MANAGEMENT_INTERFACE[];
   ...
 };

// .cpp file
const char RemoteManager::MANAGEMENT_INTERFACE[] = "127.0.0.1";

--Eljay


[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