I haven't seen that option before. Here is the manual for Sun Studio 11 C++:
http://docs.sun.com/source/819-3690/index.html If it's a GNU-specific feature, you should file an RFE for it using bugs.sun.com. We generally implement the common ones. I'm not sure we have time to do them all. :-( Is this one widely used? --chris Mayuresh Nirhali wrote: > I am trying to compile Downloader4X (d4x) on OpenSolaris with CBE (for JDS > sonsolidation). > > It seems that this package has been built only using gcc. I see a compilation > error as below, > > /ws/onnv-tools/SUNWspro/SS11/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. > -I/usr/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/var/tmp/src > -I/usr/sfw/include -include ../../config.h -O2 -c -o about.o about.cc > CC: Warning: Option -include passed to ld, if ld is invoked, ignored otherwise > CC: Invalid input file name ../../config.h, no output generated for this file. > "../liststr.h", line 50: Warning: tMemory::add hides the virtual function > tStringList::add(const char*, int). > "../liststr.h", line 50: Warning: tMemory::add hides the virtual function > tStringList::add(const char*). > "../liststr.h", line 50: Warning: tMemory::del hides the virtual function > tQueue::del(tNode*). > "../cookie.h", line 47: Warning: tCookiesTree::find hides the virtual > function tAbstractSortTree::find(tAbstractSortNode*). > "./../filter.h", line 52: Error: "}" expected instead of ";". > "./../filter.h", line 53: Error: A declaration was expected instead of > "private". > "./../filter.h", line 54: Error: "friend" is not allowed here. > "./../filter.h", line 55: Error: Rule is not defined. > "./../filter.h", line 58: Error: Unexpected type name "std::ostream" > encountered. > "./../filter.h", line 58: Error: a is not defined. > "./../filter.h", line 58: Error: Use ";" to terminate declarations. > "./../filter.h", line 58: Error: Filter is not defined. > "./../filter.h", line 58: Error: Rule is not defined. > "./../filter.h", line 58: Error: rule must be initialized. > "./../filter.h", line 58: Error: "," expected instead of ")". > "./../filter.h", line 59: Error: Unexpected type name "std::istream" > encountered. > "./../filter.h", line 59: Error: a is not defined. > "./../filter.h", line 59: Error: Filter is not defined. > "./../filter.h", line 59: Error: Multiple declaration for rule. > "./../filter.h", line 59: Error: rule must be initialized. > "./../filter.h", line 59: Error: "," expected instead of ")". > "./../filter.h", line 61: Error: ")" expected instead of "&". > "./../filter.h", line 62: Error: Filter is not defined. > "./../filter.h", line 65: Error: Type name expected instead of "Mutex". > "./../filter.h", line 66: Error: Filter is not defined. > "./../filter.h", line 68: Error: ")" expected instead of "&". > "./../filter.h", line 70: Error: Type name expected instead of "Filter". > "./../filter.h", line 70: Error: Identifier expected instead of "const". > "./../filter.h", line 70: Error: Use ";" to terminate declarations. > Compilation aborted, too many Error messages. > > > As you can see, the -include option is not recognized here and hence the > compiler is treating Config.h as the input file. > First, Is it correct that -include option is not recognized by SS11 ?? > Is no, Is there any equivalent which I can patch in the Makefile to get this > working ?? > > When I run this with gcc it goes fine. > > please advise > Mayuresh > -- > This message posted from opensolaris.org > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org
