?
Solved

libg++ and SUN CC compiler?

Posted on 1997-04-03
1
Medium Priority
?
289 Views
Last Modified: 2013-12-26
I am wondering: Can I use libg++ (especially the String, Interger, ...
classes) with the C++ compiler of SUN? Or does anybody know, if there
is something similar for CC of sun?

Simply specifying the include directory results in
error messages:

CC   -I/opt/FSFlibg++/lib/g++-include/ test.C
"/opt/FSFlibg++/lib/g++-include//iostream.h", line 95: Error: bool is not defined.
"/opt/FSFlibg++/lib/g++-include//iostream.h", line 207: Error: bool is not defined.
"test.C", line 13: Error: The function exit must have a prototype.
0
Comment
Question by:rdorsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
lockhart earned 200 total points
ID: 1292496
I had this same problem with String and SC4.0. I suspect that you could do something with the -I switch, although I didn't have any success there. I gave up for lack of time.  I finally just tweeked the String, Regex, and rx source files a bit and viola! If you want, I can send them to you. I didn't do anything with Integer.

Mike

PS Sun's Tools.h++ package has these types of classes in them. So if you have some $$ laying around you could buy that and not have to fiddle with GNUs stuff. Tools.h++ comes with the visual workshop so if you have that you already have them.
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question