Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

PreprocessorVsNamespace

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,63 sec, absolute service time: 1,67 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp(10): error C2059: syntax error: 'constant'
source_file.cpp(10): error C2238: unexpected token(s) preceding ';'
source_file.cpp(21): error C2653: 'myB': is not a class or namespace name
source_file.cpp(21): error C2146: syntax error: missing ';' before identifier 'foo'
source_file.cpp(21): error C2065: 'foo': undeclared identifier
source_file.cpp(22): error C2653: 'myB': is not a class or namespace name
source_file.cpp(22): error C2589: 'constant': illegal token on right side of '::'
source_file.cpp(22): error C2143: syntax error: missing ';' before '::'
source_file.cpp(22): error C2059: syntax error: '::'
source_file.cpp(22): error C2059: syntax error: '<<'
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64