cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/28/16:16:47

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: STRING problems!
Date: Tue, 28 Apr 1998 16:03:25 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 35
Message-ID: <3546360D.7114@cs.com>
References: <35462A31 DOT 4E83C790 AT acpub DOT duke DOT edu>
NNTP-Posting-Host: ppp144.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Vila wrote:
> 
> i posted this question several days ago and didn't really solve the
> problem. My problem is that I am a beginner to DJGPP and am having
> problems using the standard C++ string class. I have tried a wide range
> of suggestions such as changing the #include to "_string.h" and
> capitalizing the S in string, but to no avail. Can anybody help me out?
> I know this is a very simple solution, but I can't get it. I'm using
> RHIDE, my installation seemed to work ok, I do find a "_string.h" file
> in the correct place in the include directories. Any ideas?

Please post a short program that causes the error(s), along with a
capture of the compilation output (use "redir -o gcc.log -eo ...", where
... is your normal command line, or cut and paste from RHIDE).  We need
to see at least this to figure out your problem.

Just in case it's something simple, let me ask you some questions:

1) Can you compile C programs?
2) Can you compile C++ programs that use other headers besides
_string.h?
3) Can you compile from DOS?
4) If you get undefined references, are you linking the C++ libraries
when you compile (RHIDE should do this automatically)?
5) Are you spelling #include correctly?  (Don't laugh; somebody did this
earlier.)
6) Have you made any changes to your 'djgpp.env'?

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"Men rarely (if ever) manage to dream |
|       aka Fighteer I       |up a god superior to themselves. Most |
|   mailto:fighteer AT cs DOT com   |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child."    - Lazarus Long     |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019