472,790 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,790 software developers and data experts.

Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers

Following is one of the post which got un-answered in
comp.unix.solaris group earlier. I am re-posting it again hoping that
anybody who has moved from 'Sun Forte-7' to 'Sun Studio 9' should
certainly be able to help here. Thanks!

-----------------------------------------------------
I would like to know the compatibility of the checks done by the C++
compilers:
'Forte Developer 7' & 'Sun studio 9' C++ compilers.

When we moved from Sun WorkShop 6 to 'Forte Developer 7' C++ compiler,
it was required to do few modifications in the existing code for e.g.
having the same exception specification as the base class version, in
derived class version of the same function.

class base
{
public:
void test() throw(std::bad_alloc) ;

// Other parts of 'base'
};

class derived: public base
{
public:
/* Following compiled successfully with 'Sun WorkShop 6', but not
with 'Forte Developer 7' */
// void test();

/* It was required to do the following */
void test() throw(std::bad_alloc) ;

// Other parts of 'derived'
};
I fully agree that, we should write code which is 100% C++ standard
compatible to avoid any corrections based on compiler versions. But,
it may not be practically to cross-check this in a LSSD projects.

Hence, I would like to know the above information!
----------------------------------------------------
Jul 23 '05 #1
1 1455
qazmlp wrote:
-----------------------------------------------------
I would like to know the compatibility of the checks done by the C++
compilers:
'Forte Developer 7' & 'Sun studio 9' C++ compilers.


Why don't you get an eval license of studio 9 and test yourself?

From what I know there are a lot of good reasons to switch to
Studio 9. But I cannot say into what issues you might run.

Tom

--
__________________________________________________ ______________________
Dipl.-Ing. Thomas Maier-Komor http://www.rcs.ei.tum.de
Institute for Real-Time Computer Systems (RCS) fon +49-89-289-23578
Technische Universitaet Muenchen, D-80290 Muenchen fax +49-89-289-23555
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
3
by: Maur | last post by:
I have Office XP Pro and Developer Edition and SQL Server installed on my local development machine. Given the option of installing; Visual Studio 6.0 Enterprise Edition AND/OR Visual...
8
by: Saïd | last post by:
Hi, If I define two structures like this struct s1 { int a; int b; }
20
by: ritchie | last post by:
Hi, I am trying to clear the screen in my program. I am loking for something that will work on all compilers, especially Borland & MS Visual Studio 6. On Visual studio I used 'system("cls");'...
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
1
by: ChrisG | last post by:
Hi, I am building an executable using Sun Forte 7 compilers. Because I have both Fortran and C++ source codes, I have to use f77 to do the final linking: f77 -xarch=v9 -xildoff -o ../bin/rdc...
15
by: mlimber | last post by:
I'm considering different platforms and compilers for a project. Anyone have experience (positive or negative) with HP aC++ on HP-UX? It seems fairly standard compliant since it supports Boost...
11
by: Pablo Suarez | last post by:
In all my previous C++ projects I used the gcc as compiler. For some reasons I want to try out the Sun compiler instead. How can I install and use this compiler instead? Is the Sun C++...
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.