Forum Stats

  • 3,851,952 Users
  • 2,264,054 Discussions
  • 7,904,914 Comments

Discussions

Include file error from a new install of C++ compiler on Solaris 5.7

807575
807575 Member Posts: 16,875
Here is the command line being executed:
CC test.cc
Here is the sample cc file being compiled:
#include <iostream>

int main() {

std::cout << "Real programmers write C++!" << std::endl;

return 0;

}

Error Output:
"/opt/SUNWspro/WS6/include/CC/std/stddef.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/stddef.h", line 15: Error: Could not open incl
ude file <sys/isa_defs.h>.
"/opt/SUNWspro/WS6/include/CC/std/stdarg.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/string.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/ctype.h", line 7: Error: Could not open includ
e file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/wchar.h", line 6: Error: Could not open includ
e file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 34: Error: Could not ope
n include file <sys/isa_defs.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 35: Error: Could not ope
n include file <stdio_tag.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 36: Error: Could not ope
n include file <wchar_impl.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 7: Error: Could not open include
file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 42: Error: Could not open includ
e file <sys/types.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 52: Error: Could not open includ
e file <sys/time_impl.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: Type name expected in
stead of "pthread_attr_t".
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: No storage class or t
ype for this declaration.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: "," expected instead
of "*".
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 86: Error: Use ";" to terminate
declarations.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 38: Error: Could not ope
n include file <sys/va_list.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 94: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 95: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 96: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 97: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 98: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 99: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 100: Error: __FILE is no
t defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 152: Error: __FILE is no
t defined.
Compilation aborted, too many Error messages.

Could someone please help with solving this compilation error.

Thanks

Comments

This discussion has been closed.