This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
- 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 /shared/dp/mars/sparc-S2/prod/include/CC/Cstd /shared/dp/mars/sparc-S2/prod/include/CC /shared/dp/mars/sparc-S2/prod/include/CC/rw7 /shared/dp/mars/sparc-S2/prod/include/cc /usr/include
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-xbuiltin -I/opt/SUNWspro/prod/include/CC/Cstd -I/opt/SUNWspro/prod/include/CC -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod 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
Vladimir, 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.
Fixed. /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/compilers/SunCCCompiler.java,v <-- SunCCCompiler.java new revision: 1.2.2.8.10.8; previous revision: 1.2.2.8.10.7
*** Issue 104733 has been marked as a duplicate of this issue. ***
verified in 200712260000 build