HP rp3410 GCC 安装
请问有谁在HP-UX RP3410 B.11.11 U 9000/800 1000753414 unlimited-user license
上面成功安装了gcc的
autoconf-2.62-hppa-11.11.depot.gz
bison-2.3-hppa-11.11.depot.gz
gettext-0.17-hppa-11.11.depot.gz
libgcc-4.2.3-hppa-11.11.depot.gz
libiconv-1.12-hppa-11.11.depot.gz
ncurses-5.6-hppa-11.11.depot.gz
zlib-1.2.3-hppa-11.11.depot.gz
gcc-4.2.3-hppa-11.11.depot
上面这些包安装完后,gcc没有问题
g++编译的时候提示很多头文件找不到。
一个简单的cpp文件编译报下面的错误
In file included from /usr/include/stdio.h:38,
from main.c:1:
/usr/local/include/c++/4.2.3/cstdio:100: error: '::FILE' has not been declared
/usr/local/include/c++/4.2.3/cstdio:101: error: '::fpos_t' has not been declared
/usr/local/include/c++/4.2.3/cstdio:103: error: '::clearerr' has not been declared
/usr/local/include/c++/4.2.3/cstdio:104: error: '::fclose' has not been declared
/usr/local/include/c++/4.2.3/cstdio:105: error: '::feof' has not been declared
/usr/local/include/c++/4.2.3/cstdio:106: error: '::ferror' has not been declared
/usr/local/include/c++/4.2.3/cstdio:107: error: '::fflush' has not been declared
/usr/local/include/c++/4.2.3/cstdio:108: error: '::fgetc' has not been declared
/usr/local/include/c++/4.2.3/cstdio:109: error: '::fgetpos' has not been declared
/usr/local/include/c++/4.2.3/cstdio:110: error: '::fgets' has not been declared
/usr/local/include/c++/4.2.3/cstdio:111: error: '::fopen' has not been declared
/usr/local/include/c++/4.2.3/cstdio:112: error: '::fprintf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:113: error: '::fputc' has not been declared
/usr/local/include/c++/4.2.3/cstdio:114: error: '::fputs' has not been declared
/usr/local/include/c++/4.2.3/cstdio:115: error: '::fread' has not been declared
/usr/local/include/c++/4.2.3/cstdio:116: error: '::freopen' has not been declared
/usr/local/include/c++/4.2.3/cstdio:117: error: '::fscanf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:118: error: '::fseek' has not been declared
/usr/local/include/c++/4.2.3/cstdio:119: error: '::fsetpos' has not been declared
/usr/local/include/c++/4.2.3/cstdio:120: error: '::ftell' has not been declared
/usr/local/include/c++/4.2.3/cstdio:121: error: '::fwrite' has not been declared
/usr/local/include/c++/4.2.3/cstdio:122: error: '::getc' has not been declared
/usr/local/include/c++/4.2.3/cstdio:123: error: '::getchar' has not been declared
/usr/local/include/c++/4.2.3/cstdio:124: error: '::gets' has not been declared
/usr/local/include/c++/4.2.3/cstdio:125: error: '::perror' has not been declared
/usr/local/include/c++/4.2.3/cstdio:126: error: '::printf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:127: error: '::putc' has not been declared
/usr/local/include/c++/4.2.3/cstdio:128: error: '::putchar' has not been declared
/usr/local/include/c++/4.2.3/cstdio:129: error: '::puts' has not been declared
/usr/local/include/c++/4.2.3/cstdio:130: error: '::remove' has not been declared
/usr/local/include/c++/4.2.3/cstdio:131: error: '::rename' has not been declared
/usr/local/include/c++/4.2.3/cstdio:132: error: '::rewind' has not been declared
/usr/local/include/c++/4.2.3/cstdio:133: error: '::scanf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:134: error: '::setbuf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:135: error: '::setvbuf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:136: error: '::sprintf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:137: error: '::sscanf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:138: error: '::tmpfile' has not been declared
/usr/local/include/c++/4.2.3/cstdio:139: error: '::tmpnam' has not been declared
/usr/local/include/c++/4.2.3/cstdio:140: error: '::ungetc' has not been declared
/usr/local/include/c++/4.2.3/cstdio:141: error: '::vfprintf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:142: error: '::vprintf' has not been declared
/usr/local/include/c++/4.2.3/cstdio:143: error: '::vsprintf' has not been declared
In file included from /usr/local/include/c++/4.2.3/clocale:51,
from /usr/local/include/c++/4.2.3/hppa2.0w-hp-hpux11.11/bits/c++locale.h:47,
from /usr/local/include/c++/4.2.3/iosfwd:45,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/include/locale.h:94: error: '_POSIX_PATH_MAX' was not declared in this scope
In file included from /usr/local/include/c++/4.2.3/iosfwd:45,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/local/include/c++/4.2.3/hppa2.0w-hp-hpux11.11/bits/c++locale.h: In function 'int std::__convert_from_v(int* const&, char*, int, const char*, ...)':
/usr/local/include/c++/4.2.3/hppa2.0w-hp-hpux11.11/bits/c++locale.h:82: error: 'vsprintf' is not a member of 'std'
In file included from /usr/local/include/c++/4.2.3/iosfwd:46,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/local/include/c++/4.2.3/hppa2.0w-hp-hpux11.11/bits/c++io.h: At global scope:
/usr/local/include/c++/4.2.3/hppa2.0w-hp-hpux11.11/bits/c++io.h:50: error: 'FILE' does not name a type
In file included from /usr/include/ctype.h:37,
from /usr/local/include/c++/4.2.3/cctype:51,
from /usr/local/include/c++/4.2.3/iosfwd:47,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/local/include/c++/4.2.3/tr1/cctype:49: error: '::isblank' has not been declared
In file included from /usr/local/include/c++/4.2.3/iosfwd:47,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/local/include/c++/4.2.3/cctype:70: error: '::isalnum' has not been declared
/usr/local/include/c++/4.2.3/cctype:71: error: '::isalpha' has not been declared
/usr/local/include/c++/4.2.3/cctype:72: error: '::iscntrl' has not been declared
/usr/local/include/c++/4.2.3/cctype:73: error: '::isdigit' has not been declared
/usr/local/include/c++/4.2.3/cctype:74: error: '::isgraph' has not been declared
/usr/local/include/c++/4.2.3/cctype:75: error: '::islower' has not been declared
/usr/local/include/c++/4.2.3/cctype:76: error: '::isprint' has not been declared
/usr/local/include/c++/4.2.3/cctype:77: error: '::ispunct' has not been declared
/usr/local/include/c++/4.2.3/cctype:78: error: '::isspace' has not been declared
/usr/local/include/c++/4.2.3/cctype:79: error: '::isupper' has not been declared
/usr/local/include/c++/4.2.3/cctype:80: error: '::isxdigit' has not been declared
/usr/local/include/c++/4.2.3/cctype:81: error: '::tolower' has not been declared
/usr/local/include/c++/4.2.3/cctype:82: error: '::toupper' has not been declared
In file included from /usr/local/include/c++/4.2.3/bits/postypes.h:46,
from /usr/local/include/c++/4.2.3/iosfwd:49,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
/usr/local/include/c++/4.2.3/cwchar:72: error: '::mbstate_t' has not been declared
/usr/local/include/c++/4.2.3/cwchar:146: error: '::wint_t' has not been declared
/usr/local/include/c++/4.2.3/cwchar:148: error: '::btowc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:149: error: '::fgetwc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:150: error: '::fgetws' has not been declared
/usr/local/include/c++/4.2.3/cwchar:151: error: '::fputwc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:152: error: '::fputws' has not been declared
/usr/local/include/c++/4.2.3/cwchar:153: error: '::fwide' has not been declared
/usr/local/include/c++/4.2.3/cwchar:154: error: '::fwprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:155: error: '::fwscanf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:156: error: '::getwc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:157: error: '::getwchar' has not been declared
/usr/local/include/c++/4.2.3/cwchar:158: error: '::mbrlen' has not been declared
/usr/local/include/c++/4.2.3/cwchar:159: error: '::mbrtowc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:160: error: '::mbsinit' has not been declared
/usr/local/include/c++/4.2.3/cwchar:161: error: '::mbsrtowcs' has not been declared
/usr/local/include/c++/4.2.3/cwchar:162: error: '::putwc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:163: error: '::putwchar' has not been declared
/usr/local/include/c++/4.2.3/cwchar:164: error: '::swprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:165: error: '::swscanf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:166: error: '::ungetwc' has not been declared
/usr/local/include/c++/4.2.3/cwchar:167: error: '::vfwprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:171: error: '::vswprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:175: error: '::vwprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:179: error: '::wcrtomb' has not been declared
/usr/local/include/c++/4.2.3/cwchar:180: error: '::wcscat' has not been declared
/usr/local/include/c++/4.2.3/cwchar:181: error: '::wcscmp' has not been declared
/usr/local/include/c++/4.2.3/cwchar:182: error: '::wcscoll' has not been declared
/usr/local/include/c++/4.2.3/cwchar:183: error: '::wcscpy' has not been declared
/usr/local/include/c++/4.2.3/cwchar:184: error: '::wcscspn' has not been declared
/usr/local/include/c++/4.2.3/cwchar:185: error: '::wcsftime' has not been declared
/usr/local/include/c++/4.2.3/cwchar:186: error: '::wcslen' has not been declared
/usr/local/include/c++/4.2.3/cwchar:187: error: '::wcsncat' has not been declared
/usr/local/include/c++/4.2.3/cwchar:188: error: '::wcsncmp' has not been declared
/usr/local/include/c++/4.2.3/cwchar:189: error: '::wcsncpy' has not been declared
/usr/local/include/c++/4.2.3/cwchar:190: error: '::wcsrtombs' has not been declared
/usr/local/include/c++/4.2.3/cwchar:191: error: '::wcsspn' has not been declared
/usr/local/include/c++/4.2.3/cwchar:192: error: '::wcstod' has not been declared
/usr/local/include/c++/4.2.3/cwchar:196: error: '::wcstok' has not been declared
/usr/local/include/c++/4.2.3/cwchar:197: error: '::wcstol' has not been declared
/usr/local/include/c++/4.2.3/cwchar:198: error: '::wcstoul' has not been declared
/usr/local/include/c++/4.2.3/cwchar:199: error: '::wcsxfrm' has not been declared
/usr/local/include/c++/4.2.3/cwchar:200: error: '::wctob' has not been declared
/usr/local/include/c++/4.2.3/cwchar:201: error: '::wmemcmp' has not been declared
/usr/local/include/c++/4.2.3/cwchar:202: error: '::wmemcpy' has not been declared
/usr/local/include/c++/4.2.3/cwchar:203: error: '::wmemmove' has not been declared
/usr/local/include/c++/4.2.3/cwchar:204: error: '::wmemset' has not been declared
/usr/local/include/c++/4.2.3/cwchar:205: error: '::wprintf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:206: error: '::wscanf' has not been declared
/usr/local/include/c++/4.2.3/cwchar:208: error: '::wcschr' has not been declared
/usr/local/include/c++/4.2.3/cwchar: In function 'wchar_t* std::wcschr(wchar_t*, wchar_t)':
/usr/local/include/c++/4.2.3/cwchar:212: error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/usr/local/include/c++/4.2.3/cwchar:212: error: initializing argument 1 of 'wchar_t* std::wcschr(wchar_t*, wchar_t)'
/usr/local/include/c++/4.2.3/cwchar: At global scope:
/usr/local/include/c++/4.2.3/cwchar:214: error: '::wcspbrk' has not been declared
/usr/local/include/c++/4.2.3/cwchar: In function 'wchar_t* std::wcspbrk(wchar_t*, const wchar_t*)':
/usr/local/include/c++/4.2.3/cwchar:218: error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/usr/local/include/c++/4.2.3/cwchar:218: error: initializing argument 1 of 'wchar_t* std::wcspbrk(wchar_t*, const wchar_t*)'
/usr/local/include/c++/4.2.3/cwchar: At global scope:
/usr/local/include/c++/4.2.3/cwchar:220: error: '::wcsrchr' has not been declared
/usr/local/include/c++/4.2.3/cwchar: In function 'wchar_t* std::wcsrchr(wchar_t*, wchar_t)':
/usr/local/include/c++/4.2.3/cwchar:224: error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/usr/local/include/c++/4.2.3/cwchar:224: error: initializing argument 1 of 'wchar_t* std::wcsrchr(wchar_t*, wchar_t)'
/usr/local/include/c++/4.2.3/cwchar: At global scope:
/usr/local/include/c++/4.2.3/cwchar:226: error: '::wcsstr' has not been declared
/usr/local/include/c++/4.2.3/cwchar: In function 'wchar_t* std::wcsstr(wchar_t*, const wchar_t*)':
/usr/local/include/c++/4.2.3/cwchar:230: error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/usr/local/include/c++/4.2.3/cwchar:230: error: initializing argument 1 of 'wchar_t* std::wcsstr(wchar_t*, const wchar_t*)'
/usr/local/include/c++/4.2.3/cwchar: At global scope:
/usr/local/include/c++/4.2.3/cwchar:232: error: '::wmemchr' has not been declared
/usr/local/include/c++/4.2.3/cwchar: In function 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)':
/usr/local/include/c++/4.2.3/cwchar:236: error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/usr/local/include/c++/4.2.3/cwchar:236: error: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)'
In file included from /usr/local/include/c++/4.2.3/iosfwd:49,
from /usr/local/include/c++/4.2.3/ios:43,
from /usr/local/include/c++/4.2.3/ostream:45,
from main.c:2:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
很金贵。
难道用hp自己的c和C++不好使?
非要用gcc ?
build gcc是很头疼的问题
估计还有东西没有安装