New Unix programmer

I am relatively new to Unix programming and have been given a small program to write in order to get my feet wet.  I am having a problem with both the compiler and the version of STL that is on this system.  I’m working under AIX with the IBM xlC ver 3.6.4 compiler.  The problem with the compiler is that I can’t get certain C++ constructs working that I have always used, s.a. the bool type, and the namespace construct.  Also the version of STL on the system is a restricted version, which is missing certain elements s.a. the string type.  Can anybody tell me where I can get a more ANSI compliant C++ compiler and a better version of the STL for this compiler?  It must have fairly complete installation instructions since I have limited experience in AIX,  that is I need the idiot's guide to installation.


Thanks for any help
c095276Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KangaRooCommented:
0
allymCommented:
Isn't C++ getting mature if people are saying that they've ALWAYS used bool and namespaces! ! !

Gnu's gcc is old.  Cygwin is being updated and supported.

See http://sourceware.cygnus.com/cygwin/download.html

However, if your boss forces you to use the "supported" compiler from the vendor, then you can typedef bool, use const or #define for true/false, and avoid namespaces.  
0
allymCommented:
Isn't C++ getting mature if people are saying that they've ALWAYS used bool and namespaces! ! !

Gnu's gcc is old.  Cygwin is being updated and supported.

See http://sourceware.cygnus.com/cygwin/download.html

However, if your boss forces you to use the "supported" compiler from the vendor, then you can typedef bool, use const or #define for true/false, and avoid namespaces.  
0
stekman_Commented:
The GNU and Cygnus compilers are the same, since the projects have merged.  So you can't refer to gcc as old and point to Cygnus, as it's the same thing.

/Stefan
0
jelaiwCommented:
The comments above are more or less sound.  Look at gcc.gnu.org for the latest version of gcc (2.95-2), which has merged egcs and gcc (a good thing in that we get egcs with the gcc name).  I have been developing under Solaris with this compiler and I am impressed.  I also use a lot of stl.  Unfortunately, I have found that the X implementation on Solaris 7 isn't ansi c++ compliant so some of the gui devel stuff I want to use doesn't work.

If you need some hints on getting all the libraries and paths set up right, let me know, I had to install it side by side with sun's workshop c++ compiler (which I try to avoid using).

hope this helps,
jw
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.