• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

no sstream in unix???

Deeko

Lifer
I'm working on my final project for my advanced programming class...its a pain in the ass. But at any rate, one of the solutions I'm working on involves splitting a sentence, a string if you will, into its separate words. Simple enough...I use stringstream for that. The sstream library is a part of the STL, it exists in VC++ 6.0 and .NET, it exists in my school's linux systems, but NOT the unix systems, which is what the program has to compile and run in. Here is the version info:
Reading specs from /usr/local/gpl/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)

Is it normal for this library to not be here?? If so...how the hell else can I accomplish that?
 
Version info for the linux system:
gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

ok, its a newer version of gcc...but still...
 
As said above, if you want to use gcc you have to use strtok. g++ is the Gnu C++ compiler, and it's pretty horrid. Your system probably includes Sun's C++ compilers, which is 'CC'. It's much preferable to g++, especially if your targeting SunOS.
 
I'm using G++. GCC will not work with any streams including iostream. The problem is just thst sstream doesn't seem to exist in my version.
 
Originally posted by: Chu
As said above, if you want to use gcc you have to use strtok. g++ is the Gnu C++ compiler, and it's pretty horrid. Your system probably includes Sun's C++ compilers, which is 'CC'. It's much preferable to g++, especially if your targeting SunOS.

How exactly is g++ horrid?

2.95 is pretty old though; I wouldn't be surprised if it was horrid.
 
Back
Top