473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 1473
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.