From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Using stuff in the CXX directory Date: Sat, 06 Dec 1997 20:28:48 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 36 Message-ID: <3489B580.4FB0@cs.com> References: <66a7er$6vo$1 AT walton DOT videotron DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp239.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Jean-Sebastien Payette wrote: > > How do I use the include that r in the lang\CXX dir > I use RHIDE and I KNOW that I have to set the include path in the option... > > Thing is that if I compile my program it find the .h file (ostream.h in > fact, I'm sick of strdup() and char *var string type) it said some variable > found in streambu.h and string.h and IOstream.h are undefined or > something.... > > Maybe I need to (somehow) switch the compiler to C++ with the rhide flag > ???? If you give your program a proper C++ extension (.C, .cc, .cpp, .cxx), RHIDE (at least the latest version) will automatically link the C++ libraries. Note that case is important. The last I heard, RHIDE doesn't force you to manually specify where to find C++ headers, especially since it doesn't do the work; gcc does. If you want to do things from the command line, you need merely use 'gxx' instead of 'gcc' to compile C++, or manually add the C++ libraries (any combination of '-lgpp', '-liostr', and '-lstdcx'). If gcc/gxx isn't finding your C++ headers or libraries, then you have an installation problem; read chapter 6.12 of the FAQ or use RHIDE's bug report facility. hth -- --------------------------------------------------------------------- | John M. Aldrich | "Animals can be driven crazy by pla- | | aka Fighteer I | cing too many in too small a pen. | | mailto:fighteer AT cs DOT com | Homo sapiens is the only animal that | | http://www.cs.com/fighteer | voluntarily does this to himself." | ---------------------------------------------------------------------