Mail Archives: djgpp/1997/12/05/21:20:15
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." |
---------------------------------------------------------------------
- Raw text -