This content has been marked as final. Show 4 replies
The -I option requires a path as an argument. The -I by itself is an error. The solution is not to use -I without an argument.
More than likely, there is some environment variable in the Makefile you are using which is not set or you've managed to set incorrectly to "", which is why the include is not found.
This is expected behavior.
Can you tell me how to compile a C++ program in solaris, i have installed sun studio 10.
if i give
i get a error message as CC command not found
if i give
i get a error msg ld:fatal :unknown file type.
Since your question is not related to this thread, you really should start a new topic.
Short answer: CC must be on your execution path (the shell "path" or "PATH" variable) for it to be found by just typing "CC". The exact way you set the path variable depends on which shell you are using. This issue is discussed in the Installation Guide, I think.