Created
September 15, 2015 14:35
-
-
Save azat/e6b147f07364123fd232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/include/c++/5/bits/stl_list.h:207:50: error: type ‘const struct _Node’ violates one definition rule [-Werror=odr] | |
typedef const _List_node<_Tp> _Node; | |
^ | |
/usr/include/c++/5/bits/stl_list.h:207:50: note: a different type is defined in another translation unit | |
typedef const _List_node<_Tp> _Node; | |
^ | |
/usr/include/c++/5/bits/stl_list.h:109:11: note: the first difference of corresponding definitions is field ‘_M_data’ | |
_Tp _M_data; | |
^ | |
/usr/include/c++/5/bits/stl_list.h:109:11: note: a field of same name but different type is defined in another translation unit | |
_Tp _M_data; | |
^ | |
/usr/include/c++/5/bits/stl_pair.h:96:12: note: type ‘struct pair’ defined in anonymous namespace can not match type ‘struct pair’ | |
struct pair | |
^ | |
/usr/include/c++/5/bits/stl_pair.h:96:12: note: the incompatible type defined in anonymous namespace in another translation unit | |
struct pair | |
^ | |
lto1: all warnings being treated as errors | |
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status | |
compilation terminated. | |
gold: fatal error: lto-wrapper failed | |
collect2: error: ld returned 1 exit status | |
ninja: build stopped: subcommand failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I checked with trunk@227818 and it works without this errors