- Add path to Sun Studio compilers into PATH
- Run Netbeans
- Set 'Sun Compiler Collection' in 'Default Compiler Collection' field in 'C/C++
Pack Settings' tab
- Create 'Quote' sample project
Parser cannot find <cstdlib> and <cstring> include files
I typed in console:
CC -E ~/Quote1/customer.cc | grep cstdlib
==> #1 /shared/dp/mars/sparc-S2/prod/include/CC/std
I opened parser settings and found:
-xbuiltin <-- It isn't path
I want to notice that this is P2 for C/C++ Development Pack but for SS it looks
more like P1.
Need to analyze for follow-up release of the NB C/C++ Dev Pack.That release is
likely to be the platform for the next generation Sun Studio IDE.
Below is the reason of such behavior.
To understand what are compiler predefined include paths, Sun compiler (CC) is
invoked with -xdryrun -E parameters and its output is parsed.
It is supposed to output several -I options. Project system finds this -I
options in its output and places their content into a list of compiler
predefined include paths.
On my machine, it prints
I see two problems here
1) -I-xbuiltin obviously does not correspond any directory. This should be fixed
on IDE site - this should be just ignored by project system.
2) Compiler prints -Iopt/SUNWspro/prod/include/CC/Cstd, but does not print
-Iopt/SUNWspro/prod/include/CC/std. Both directories exist and compiler does
search both for includes
I think the first problem you mentioned about -I-xbuiltin is a bug in compiler
side and IDE should not do anything with that, we can check with compilers team
and file CR for this issue.
new revision: 188.8.131.52.10.8; previous revision: 184.108.40.206.10.7
*** Issue 104733 has been marked as a duplicate of this issue. ***
verified in 200712260000 build