Solved

libg++ and SUN CC compiler?

Posted on 1997-04-03
1
288 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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 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