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

templates must have C++ linkage #20

Open
webrtch264 opened this issue Jun 7, 2019 · 0 comments
Open

templates must have C++ linkage #20

webrtch264 opened this issue Jun 7, 2019 · 0 comments

Comments

@webrtch264
Copy link

Hi,
I had this error wen i run ninja -C out/Default peerconnection_client

../../buildtools/third_party/libc++/trunk/include/deque:169:1: error: templates must have C++ linkage
template <class _Tp, class _Allocator> class __deque_base;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../webrtc/examples/peerconnection/client/h264framegenerator.h:26:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:170:1: error: templates must have C++ linkage
template <class _Tp, class _Allocator = allocator<_Tp> > class _LIBCPP_TEMPLATE_VIS deque;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../webrtc/examples/peerconnection/client/h264framegenerator.h:26:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:172:1: error: templates must have C++ linkage
template <class _ValueType, class _Pointer, class _Reference, class _MapPointer,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../webrtc/examples/peerconnection/client/h264framegenerator.h:26:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:178:1: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2>
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:178:1: error: too many template arguments for class template '__tree_iterator'
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2>
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:181:6: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2> __r,
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:181:6: error: too many template arguments for class template '__tree_iterator'
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2> __r,
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:176:1: error: templates must have C++ linkage
template <class _RAIter,
^~~~~~~~~~~~~~~~~~~~~~~~
../../webrtc/examples/peerconnection/client/h264framegenerator.h:26:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:187:6: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
copy(__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __f,
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:187:6: error: too many template arguments for class template '__tree_iterator'
copy(__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __f,
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:188:6: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __l,
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:188:6: error: too many template arguments for class template '__tree_iterator'
__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __l,
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:184:1: error: templates must have C++ linkage
template <class _V1, class _P1, class _R1, class _M1, class _D1, _D1 _B1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../webrtc/examples/peerconnection/client/h264framegenerator.h:26:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:193:1: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2>
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:193:1: error: too many template arguments for class template '__tree_iterator'
__deque_iterator<_V2, _P2, _R2, _M2, _D2, _B2>
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:194:6: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
copy(__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __f,
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:194:6: error: too many template arguments for class template '__tree_iterator'
copy(__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __f,
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:195:6: error: no template named '__deque_iterator'; did you mean '__tree_iterator'?
__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __l,
^
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: '__tree_iterator' declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
In file included from ../../webrtc/examples/peerconnection/client/conductor.cc:10:
In file included from ../../webrtc/examples/peerconnection/client/h264videocapturer.h:18:
In file included from ../../webrtc/examples/peerconnection/client/h264framegenerator.h:31:
In file included from ../../buildtools/third_party/libc++/trunk/include/queue:170:
../../buildtools/third_party/libc++/trunk/include/deque:195:6: error: too many template arguments for class template '__tree_iterator'
__deque_iterator<_V1, _P1, _R1, _M1, _D1, _B1> __l,
^ ~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__tree:806:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS __tree_iterator
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[10/386] CXX obj/webrtc/modules/video_capture/video_capture_internal_impl/video_capture_linux.o
ninja: build stopped: subcommand failed.

Could any one help me to figure out the problem please ?
Thanks,

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

1 participant