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

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

[3370 byte] By [gregsiel] at [2007-11-25 23:41:47]
# 1
Hi there,I guess a simple modification to your PATH statement would solve this, you can also specify "-I /usr/include" in your makefile as a path to search for. So I only think your environment needs a little twinkling.M. Poels (m.poels@opentsp.com)
mpoels at 2007-7-5 18:49:20 > top of Java-index,Development Tools,Solaris and Linux Development Tools...