Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: template specialization with C linkage #196

Open
HuberyQ opened this issue Mar 15, 2022 · 1 comment
Open

error: template specialization with C linkage #196

HuberyQ opened this issue Mar 15, 2022 · 1 comment

Comments

@HuberyQ
Copy link

HuberyQ commented Mar 15, 2022

When I was building the project, I met such a mistake:
/usr/include/c++/9/tuple:875:3: error: template specialization with C linkage
875 | template<>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:
/usr/include/string.h:28:1: note: ‘extern "C"’ linkage started here
28 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from ./strings.h:15,
from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from file_system.cc:15:
/usr/include/c++/9/tuple:892:3: error: template with C linkage
892 | template<typename _T1, typename _T2>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:
/usr/include/string.h:28:1: note: ‘extern "C"’ linkage started here
28 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from ./strings.h:15,
from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from file_system.cc:15:
/usr/include/c++/9/tuple:1271:3: error: template with C linkage
1271 | template<typename... _Elements>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:
/usr/include/string.h:28:1: note: ‘extern "C"’ linkage started here
28 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from ./strings.h:15,
from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from file_system.cc:15:
/usr/include/c++/9/tuple:1284:3: error: template with C linkage
1284 | template<std::size_t __i, typename _Head, typename... _Tail>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:
/usr/include/string.h:28:1: note: ‘extern "C"’ linkage started here
28 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from ./strings.h:15,
from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from file_system.cc:15:
/usr/include/c++/9/tuple:1291:3: error: template with C linkage
1291 | template<typename _Head, typename... _Tail>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:
/usr/include/string.h:28:1: note: ‘extern "C"’ linkage started here
28 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from ./strings.h:15,
from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from file_system.cc:15:
/usr/include/c++/9/tuple:1300:3: error: template with C linkage
1300 | template<size_t __i>
| ^~~~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from file_system.cc:10:

@zyl1223582136
Copy link

i hava the same problem, and i guess that contributes to mve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants