acimpoeru / google-glog

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

raw_logging.h compiling error without prevous logging.h #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. #include <glog/raw_logging.h> only, without logging.h
2. compile the code

What is the expected output? What do you see instead?
In file included from thirdparty/glog/vlog_is_on.h:1:0,
                 from ./thirdparty/glog-0.3.2/src/glog/raw_logging.h:44,
                 from ./thirdparty/glog/raw_logging.h:1,
                 from toft/system/check_error.cpp:11:
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:113:8: error: 'int32' in 
namespace 'google' does not name a type
In file included from thirdparty/glog/vlog_is_on.h:1:0,
                 from ./thirdparty/glog-0.3.2/src/glog/raw_logging.h:44,
                 from ./thirdparty/glog/raw_logging.h:1,
                 from toft/system/check_error.cpp:11:
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:124:13: warning: 'InitVLOG3__' 
initialized and declared 'extern' [enabled by default]
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:124:5: error: 'int32' is not a 
member of 'google'
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:124:21: error: 'site_flag' was 
not declared in this scope
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:125:5: error: 'int32' is not a 
member of 'google'
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:125:20: error: 'site_default' was 
not declared in this scope
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:126:5: error: expected 
primary-expression before 'const'
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:127:5: error: 'int32' is not a 
member of 'google'
./thirdparty/glog-0.3.2/src/glog/vlog_is_on.h:127:32: error: expression list 
treated as compound expression in initializer [-fpermissive]

What version of the product are you using? On what operating system?
0.3.2 Linux

Please provide any additional information below.

Original issue reported on code.google.com by chen3feng on 21 Apr 2013 at 3:59