🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41744

Re: cstring.h for IRIX 5.3? (need string class!)

#41744
From: Avi Yaeli
Date: Thu, 22 Feb 1996 00:00
52 lines
2667 bytes
In article <31249831.224418@news.unit.no>, <oddvarh@stud.unit.no> writes:
> Path: 
news.NetVision.net.il!psinntp!psinntp!psinntp!howland.reston.ans.net!newsfeed.i
nternetmci.com!news.kei.com!nntp.coast.net!news00.sunet.se!sunic!news99.sunet.s
e!nntp-trd.UNINETT.no!due.unit.no!usenet
> From: oddvarh@stud.unit.no
> Newsgroups: gnu.gcc.help
> Subject: cstring.h for IRIX 5.3? (need string class!)
> Date: Fri, 16 Feb 1996 14:50:07 GMT
> Organization: The Norwegian University of Science and Technology
> Lines: 11
> Message-ID: <31249831.224418@news.unit.no>
> NNTP-Posting-Host: melvinj5.stud.unit.no
> X-Newsreader: Forte Agent .99c/16.141
> 
> OK, this is my problem:
> 
> I have written a C++ program in Borland C++ and I would like to
> compile it on my schools UNIX system.  The only problem is that
> I am using the string class which is defined in the header fil
> cstring.h and gcc doesn't have this library. Is it possible to
> download this header file (and, of course, the .cpp fil which contains
> the real code) from the internet somewhere...? In that way I could
> compile it myself.
> 
> Christian
> 

There are quite a lot of problems when taking a DOS/WINDOWS program and 
converting it to UNIX invironment.

The first thing for you to know, is that the string class implementation
is in a file called "string" that's right not "string.h" or "cstring.h" but
"string".  This file is located in a directory called "g++-include/".

What you have to do is :
	- change all the places where you've included "cstring.h" to "string".
	- in your makefile add the directory "g++-include" to the include
		directories. This should be done because "g++-include" is not
		the main include directory.  I think that this action can be
		done with the -I switch in the gcc command.  Type 'man gcc'
		for further info on the syntax.

Take note that "string" also contains implementation of some functions that
are located in "string.h" in Borland's standard library, thus you might have
to delete your include of "string.h" from your program.

Good luck,

Avi Yaeli
Sitav@netvision.net.il
Technical Details
Message-ID: <NEWTNews.825023227.19263.Postmast@sitav.netvision.net.il>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <31249831.224418@news.unit.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bcddda57643fc5af
X-Google-Attributes: gid11318c,public
From: Avi Yaeli <Sitav@netvision.net.il>
Subject: Re: cstring.h for IRIX 5.3? (need string class!)
Date: 1996/02/22
Message-ID: <NEWTNews.825023227.19263.Postmast@sitav.netvision.net.il>
X-Deja-AN: 140573231
references: <31249831.224418@news.unit.no>
to: oddvarh@stud.unit.no
content-type: TEXT/PLAIN; charset=US-ASCII
organization: NetVision LTD.
mime-version: 1.0
newsgroups: gnu.gcc.help