Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - _ecpp-ne: (2 Items)
   
_ecpp-ne  
On 6.5.0 from command line I type

QCC -Y _ecpp-ne -lang-c++ -fno-exceptions -I/usr/qnx650/target/qnx6/usr/include/cpp  stdafx.cpp -c -o stdafx.o

With 
===== begin of stdafx.cpp =====
#include <stl.h>
===== end of stdafx.cpp =====

And I get the following errors
===== Begin of output =====
$ QCC -Y _ecpp-ne -lang-c++ -fno-exceptions -I/usr/qnx650/target/qnx6/usr/include/cpp  stdafx.cpp -c -o stdafx.o
In file included from /usr/qnx650/target/qnx6/usr/include/cpp/xmemory:9,
                 from /usr/qnx650/target/qnx6/usr/include/cpp/memory:7,
                 from /usr/qnx650/target/qnx6/usr/include/cpp/algorithm:6,
                 from /usr/qnx650/target/qnx6/usr/include/cpp/stl.h:26,
                 from stdafx.cpp:1:
/usr/qnx650/target/qnx6/usr/include/cpp/xutility:1258: error: expected type-specifier before 'char_traits'
/usr/qnx650/target/qnx6/usr/include/cpp/xutility:1258: error: expected '>' before 'char_traits'
/usr/qnx650/target/qnx6/usr/include/cpp/xutility:1259: error: redefinition of default argument for 'class _Traits'
/usr/qnx650/target/qnx6/usr/include/cpp/iosfwd:449: note: original definition appeared here
/usr/qnx650/target/qnx6/usr/include/cpp/xutility:1410: error: invalid use of template-name 'std::char_traits' without an
 argument list
/usr/qnx650/target/qnx6/usr/include/cpp/xutility: In member function 'std::ostreambuf_iterator<_Elem, _Traits>& std::ostreambuf_iterator<_Elem, 
_Traits>::operator=(_Elem)':
/usr/qnx650/target/qnx6/usr/include/cpp/xutility:1441: error: 'traits_type' has not been declared
In file included from /usr/qnx650/target/qnx6/usr/include/cpp/stl.h:29,
                 from stdafx.cpp:1:
/usr/qnx650/target/qnx6/usr/include/cpp/iterator: At global scope:
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:171: error: expected type-specifier before 'char_traits'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:171: error: expected '>' before 'char_traits'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:174: error: '_Diff' was not declared in this scope
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:174: error: template argument 4 is invalid
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:176: error: '_Diff' was not declared in this scope
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:176: error: template argument 4 is invalid
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:177: error: '_Diff' was not declared in this scope
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:177: error: wrong number of template arguments (4, should be 3)
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:173: error: provided for 'template<class _Ty, class _Elem, class 
_Traits> class std::istream_iterator'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:181: error: '_Mybase' is not a class or namespace
/usr/qnx650/target/qnx6/usr/include/cpp/iterator: In member function 'bool std::istream_iterator<_Ty, _Elem, _Traits>::
_Equal(const int&) const':
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:247: error: request for member '_Myistr' in '_Right', which is of non-class type 'const int'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator: At global scope:
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:267: error: wrong number of template arguments (4, should be 3)
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:173: error: provided for 'template<class _Ty, class _Elem, class _Traits> class std::istream_iterator'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:268: error: wrong number of template arguments (4, should be 3)
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:173: error: provided for 'template<class _Ty, class _Elem, class 
_Traits> class std::istream_iterator'
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:268: error: 'bool std::operator==(const int&, const int&)' must have an
 argument of class or enumerated type
/usr/qnx650/target/qnx6/usr/include/cpp/iterator:278: error: wrong number of template...
View Full Message
Re: _ecpp-ne  
You guys should be aware that when you are making links from /usr/include into $QNX_TARGET/usr/include there CAN BE 
other files, not only *.h and *.c. And that is related to both GNU's and Dincimware's STLs. And that is far not the 
first OS release you forget to link files like that.
And for Dincumware's STL there are even compiler warnings from new GCC not fixed which indicates that nobody ever tested
 it for long long time.