wofan / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

glog doesn't output log message when compiled with libc++ #164

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.

// test.cc
#include <glog/logging.h>

int main(int argc, char **argv)
{
  google::InitGoogleLogging(argv[0]);
  LOG(ERROR) << "this message should print out";
  return 0;
}

2. clang++  test.cc -std=c++11 -stdlib=libc++ -lglog -lc++ -o test && ./test 
3.

What is the expected output? What do you see instead?

expected output: 
E0705 00:25:24.733587   389 test.cc:8] this message should print out

What I see instead:
E0705 00:25:24.733587   389 test.cc:8]

What version of the product are you using? On what operating system?
Ubuntu 12.04 using glog 0.3.3

Original issue reported on code.google.com by hala...@gmail.com on 5 Jul 2013 at 12:26

GoogleCodeExporter commented 8 years ago
Never mind, it turns out it's because glog was compiled with libstdc++ 

Original comment by hala...@gmail.com on 5 Jul 2013 at 2:49