Skip to content

Instantly share code, notes, and snippets.

@sat0b
Created June 19, 2017 22:33
Show Gist options
  • Select an option

  • Save sat0b/c50534d477370e209b93e6741ddb1a2b to your computer and use it in GitHub Desktop.

Select an option

Save sat0b/c50534d477370e209b93e6741ddb1a2b to your computer and use it in GitHub Desktop.
#include <glog/logging.h>
void sample() {
CHECK_EQ(10, 20);
}
int main(int argc, char *argv[]) {
LOG(INFO) << "start!";
google::SetLogDestination(google::GLOG_INFO, ".");
google::InitGoogleLogging(argv[0]);
google::InstallFailureSignalHandler();
sample();
}
@sat0b
Copy link
Author

sat0b commented Jun 19, 2017

clang++ glog_test.cpp -O0 -g -lglog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment