I don't know why it's not working, i can compile:
g++ -I ~/local/include -L ~/local/lib -o tryBin ObjContainer.cpp -ldracodec -ldracoenc -lboost_serialization -lboost_system
but when execute i get the following error.
Segmentation fault (core dumped)
main:
int main() {
ObjContainer objCon;
return 0;}
ObjContainer::ObjContainer() {
file_streamer_ = NULL;
oa_ = NULL;
}
ObjContainer::~ObjContainer() {
delete file_streamer_;
delete file_streamer_in_;
delete oa_;
}
and my headerFile:
class ObjContainer {
public:
ObjContainer();
virtual ~ObjContainer();
};