Solved

libg++ and SUN CC compiler?

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

Suggested Solutions

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

679 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