Skip to content

Instantly share code, notes, and snippets.

@azat
Created September 15, 2015 14:35
Show Gist options
  • Save azat/e6b147f07364123fd232 to your computer and use it in GitHub Desktop.
Save azat/e6b147f07364123fd232 to your computer and use it in GitHub Desktop.
/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.
@azat
Copy link
Author

azat commented Sep 21, 2015

I checked with trunk@227818 and it works without this errors

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