Using SPARCompiler C++ 4.1 and problems with the <vector> header...

Using SPARCompiler C++ 4.1 and problems with the <vector> header...

Post by Steve Bellen » Fri, 04 Sep 1998 04:00:00




>Hi folks!

>        I was trying to compile a very simple program,
>        that I wrote in C++ for an OpenVMS platform,
>        in a Solaris system using the SPARCompiler C++
>        4.1 and I got the following message:

>        Error: could not open include file <vector>

>        I have read on the documentation that the release
>        4.1 does not include the header file vector.h
>        anymore. My question is: is this vector.h header
>        the same vector I use on VMS? (The one from the
>        Standard Template Library?) In this case, what
>        header file should I use now? (If it doesn't accept
>        the vector and vector.h headers, what should I
>        do?)

>        What about the string header file? Is it supported?

The current version of C++ 4.2 which was release long before
C++ "had" a standard. (Which passed last November). Your options
1. Try to get early access to C++ 5.0
2. Download the free STL from sgi
3. Change to use the tools.h++ libraries

For string, you can create a file called
string which justcontains
#include <string.h>

You can try coping the vector.h from VMS but template
code isn't always portible.
--

 
 
 

Using SPARCompiler C++ 4.1 and problems with the <vector> header...

Post by Chris Halverso » Fri, 04 Sep 1998 04:00:00



>         I have read on the documentation that the release
>         4.1 does not include the header file vector.h
>         anymore. My question is: is this vector.h header
>         the same vector I use on VMS? (The one from the
>         Standard Template Library?) In this case, what
>         header file should I use now? (If it doesn't accept
>         the vector and vector.h headers, what should I
>         do?)

>         What about the string header file? Is it supported?

You will have to install the STL yourself. I have just done so w/
SunPRO 4.2. I would suggest using the STLPort of the SGI STL available
at:

http://corp.metabyte.com/~fbp/stl/index.html

Grab the string class from:

http://peak.HiTech.MIPT.Ru/WWW/pub/string-latest.tar.gz

These both work just fine w/ 4.2 anyway.

Chris

--
Chris D. Halverson                         Complete Internet Solutions
PGP mail accepted, finger for public key   http://www.CompleteIS.com/~cdh/

 
 
 

1. <><><> MOUNTING EXTENDED PARTITION <><><>

I have a 10 GB UDMA IDE drive formatted with Windows.  The first partition
is FAT32, and the second is NTFS.  I can successfully mount the first, but
not the second.  Any ideas?

Suse 7.2 on i86
the drive is mounted on /dev/hdc, and I CAN see hda1, but not hda2

2. UNIX on laptops

3. Wanted: <><><> Unix Specialist <><><>

4. CDE Statup Errors in Solaris 10

5. LILO help <><><><><><>

6. CompUSA: Mac and Linux Alternative To Windows!

7. Rogue Wave Standard C++ Library 1.2 and SPARCompiler C++ 4.1

8. mail and custom headers?

9. << <<anyone using dyn-html?>> >>

10. Samba problem: WinXP <-> ADSL <-> Internet <-> Cable <-> Linux

11. <<Java IDE For RH-Linux 4.1>>

12. gdb with SPARCompiler C++ 4.1

13. SPARCompiler C++ 4.1 Templates DB