Solved

libg++ and SUN CC compiler?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 62
Line meaning 9 85
sumHeights  challenge 17 70
JQuery serialize and unserialize 8 83
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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