i have declared static const variable before configuremanager.h class declaration this:
static const std::string configure_file_path = "./abc.conf"; class configuremanager: private boost::noncopyable { ... };
later on when trying access configuremanager.cpp class methods, giving me segmentation fault error.
#include "configuremanager.h" void configuremanager::xyz() { std::cout << "configurefilepath " << configure_file_path << std::endl; }
i using g++ compiler in ubuntu environment.
i had no issues inserting, compiling, , running code. string sent console. post error message or more code...
Comments
Post a Comment