> Odd. The directory it's in is in LOCAL_INCLUDES in > dom/bindings/moz.build... Try adding it there in > dom/bindings/test/moz.build as well?
Thank you, however, the problem still exists. Including nsGlobalWindow.h in the test directory only causes other early errors saying that the file is already included, so I needed to rollback the changes. So, any idea how to fix the following error? ----------------------------------------------------------------------- 5:43.34 In file included from ../../../../dist/include/nsGlobalWindow.h:44:0, 5:43.34 from /home/tomasz/CPPProjects/mozilla-central/obj-x86_64-unknown-linux-gnu/dom/bindings/PeerConnectionImplEnumsBinding.cpp:5, 5:43.34 from /home/tomasz/CPPProjects/mozilla-central/media/webrtc/signaling/test/signaling_unittests.cpp:45: 5:43.34 ../../../../dist/include/nsFrameMessageManager.h: At global scope: 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:66:63: error: type/value mismatch at argument 1 in template parameter list for 'template<class E> class nsTArray' 5:43.34 InfallibleTArray<nsString>* aJSONRetVal, 5:43.34 ^ 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:66:63: error: expected a type, got 'nsString_external' 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:233:52: error: type/value mismatch at argument 1 in template parameter list for 'template<class E> class nsTArray' 5:43.34 InfallibleTArray<nsString>* aJSONRetVal); 5:43.34 ^ 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:233:52: error: expected a type, got 'nsString_external' 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:305:20: error: type/value mismatch at argument 1 in template parameter list for 'template<class E> class nsTArray' 5:43.34 nsTArray<nsString> mPendingScripts; 5:43.34 ^ 5:43.34 ../../../../dist/include/nsFrameMessageManager.h:305:20: error: expected a type, got 'nsString_external' 5:43.35 In file included from ../../../../dist/include/nsStringGlue.h:21:0, 5:43.35 from ../../../../dist/include/mozilla/ErrorResult.h:18, 5:43.35 from ../../../../dist/include/mozilla/dom/PeerConnectionObserverEnumsBinding.h:8, 5:43.35 from /home/tomasz/CPPProjects/mozilla-central/media/webrtc/signaling/test/FakePCObserver.h:21, 5:43.35 from /home/tomasz/CPPProjects/mozilla-central/media/webrtc/signaling/test/signaling_unittests.cpp:23: 5:43.35 ../../../../dist/include/nsStringAPI.h:906:40: error: 'nsString_external' does not name a type 5:43.35 #define nsString nsString_external 5:43.35 ^ 5:43.35 ../../../../dist/include/nsFrameMessageManager.h:358:3: note: in expansion of macro 'nsString' 5:43.35 nsString mMessage; ----------------------------------------------------------------------- > Uh.. why is that #including the binding _cpp_ file? That's broken. > Please file a bug on webrtc to not do that? Hmm I know nothing about Python programing (I am a C/C++ and Java developer), so I have no idea what I should really report here. Should I just paste the log and write that this error appears after including nsGlobalWindow.h? Best, Tomasz _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform