- 论坛徽章:
- 0
|
本帖最后由 lcatove 于 2009-11-16 15:30 编辑
user@HP-UX 11.23 # what /opt/aCC/bin/aCC
/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.61 070723 $
HP aC++ B3910B A.03.85
HP aC++ B3910B A.03.80 Classic Iostream Library
HP aC++ B3910B A.03.80 Language Support Library
user@HP-UX 11.23 # aCC test.20091114.cpp
Error 112: \"test.20091114.cpp\", line 4 # Include file <strstream> not found.
#include <strstream>
^^^^^^^^^^^
user@HP-UX 11.23 # find /opt/aCC | grep strstream
/opt/aCC/include/iostream/strstream.h
/opt/aCC/include_std/iostream_compat/strstream.h
/opt/aCC/include_std/strstream
/opt/aCC/share/man/man3.Z/istrstream.3n
/opt/aCC/share/man/man3.Z/ostrstream.3n
/opt/aCC/share/man/man3.Z/strstream.3f
/opt/aCC/share/man/man3.Z/strstream.3n
/opt/aCC/share/man/man3.Z/strstreambuf.3n
user@HP-UX 11.23 # aCC test.20091114.cpp
Error 112: \"test.20091114.cpp\", line 4 # Include file <strstream> not found.
#include <strstream>
^^^^^^^^^^^
user@HP-UX 11.23 # aCC -I/opt/aCC/include_std test.20091114.cpp
- Error 403: \"/opt/aCC/include_std/memory\", line 554 # Undeclared variable \'size_t\'. Perhaps \'size_t\' as in \"typedef unsigned long size_t\" [\"/usr/include/sys/_size_t.h\", line 25] was intended. inline _STD_RW::pair<void*, _RWSTD_C::size_t> ^^^^^^^^^^^^^^^^ Error 321: \"/opt/aCC/include_std/memory\", line 554 # A type argument was expected in the specialization of template \'pair\'. inline _STD_RW::pair<void*, _RWSTD_C::size_t> ^^^^^^^^^^^^^^^^ Error 422: \"/opt/aCC/include_std/memory\", line 555 # \'size_t\' is used as a type, but has not been defined as a type. Perhaps you meant \'size_t\' as in \"typedef unsigned long size_t\" [\"/usr/include/sys/_size_t.h\", line 25]. __rw_reallocate_temp_buffer (void *ptr, _RWSTD_C::size_t __size) ^^^^^^ Error 403: \"/opt/aCC/include_std/memory\", line 571 # Undeclared variable \'size_t\'. Perhaps \'size_t\' as in \"typedef unsigned long size_t\" [\"/usr/include/sys/_size_t.h\", line 25] was intended. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^ Error 321: \"/opt/aCC/include_std/memory\", line 571 # A type argument was expected in the specialization of template \'pair\'. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^ Error 187: \"/opt/aCC/include_std/memory\", line 571 # Referenced object \'@$pair\' is not a member of class pair<void *,(int)0> [\"/opt/aCC/include_std/memory\", line 571]. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^ Error 339: \"/opt/aCC/include_std/memory\", line 571 # Return type \'int\' does not match expected return type \'class pair<void *,(int)0>\' return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error 403: \"/opt/aCC/include_std/memory\", line 576 # Undeclared variable \'size_t\'. Perhaps \'size_t\' as in \"typedef unsigned long size_t\" [\"/usr/include/sys/_size_t.h\", line 25] was intended. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^ Error 321: \"/opt/aCC/include_std/memory\", line 576 # A type argument was expected in the specialization of template \'pair\'. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^ Error 187: \"/opt/aCC/include_std/memory\", line 576 # Referenced object \'@$pair\' is not a member of class pair<void *,(int)0> [\"/opt/aCC/include_std/memory\", line 576]. return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^ Error 339: \"/opt/aCC/include_std/memory\", line 576 # Return type \'int\' does not match expected return type \'class pair<void *,(int)0>\' return _STD_RW::pair<void*, _RWSTD_C::size_t>(0, 0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error 403: \"/opt/aCC/include_std/memory\", line 583 # Undeclared variable \'size_t\'. Perhaps \'size_t\' as in \"typedef unsigned long size_t\" [\"/usr/include/sys/_size_t.h\", line 25] was intended. return _STD_RW::pair<void*, _RWSTD_C::size_t>(buffer, __size); ^^^^^^^^^^^^^^^^ Error 699: \"/opt/aCC/include_std/memory\", line 583 # Error limit reached; halting compilation. return _STD_RW::pair<void*, _RWSTD_C::size_t>(buffer, __size);
复制代码
测试程序的代码
- #include <string>
- #include <cstring>
- #include <vector>
- #include <strstream>
- using namespace std;
- int main(int argc, char **argv){
- cout<<\"asdfadfasdf\"<<\":end\"<<endl;
- }
复制代码 |
|