473,396 Members | 1,789 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,396 software developers and data experts.

how to check that my programe respects the iso c++

Hello
I maintain an old software that was developped since twelve years.
I need to check for the best portability and the best maintainability.
The idea is to write cleanest c++. So I want to check for the respect of
the iso c++ of my code which originaly don't respect it. (It was first
compile with gcc2.7.x)
I made some modifications, but I am not sure to have terminate my job.
Sorry for my poor english
Jul 22 '05 #1
2 1252

"Matthieu Gallien" <ma**************@laas.fr> wrote in message
Hello
I maintain an old software that was developped since twelve years.
Twelve years is like ages for a C++ program :-)
I need to check for the best portability and the best maintainability.
The idea is to write cleanest c++. So I want to check for the respect of
the iso c++ of my code which originaly don't respect it. (It was first
compile with gcc2.7.x)


Get yourself a modern compiler like g++ 3.4. Compiler your code with the
appropriate compiler options (-W -Wall -ansi -pedantic ...) You may get
dozens of errors, if you have not been keeping up with the pace of changes
in C++ then get a good introductory level C++ also. Accelerated C++ (Koenig
& Moo) is a good option for that.

HTH,
Sharad

Jul 22 '05 #2
Matthieu Gallien wrote:
Hello
I maintain an old software that was developped since twelve years.
I need to check for the best portability and the best maintainability.
The idea is to write cleanest c++. So I want to check for the respect of
the iso c++ of my code which originaly don't respect it. (It was first
compile with gcc2.7.x)
I made some modifications, but I am not sure to have terminate my job.
Sorry for my poor english


In g++, you can compile with the -std=c++98 flag set. This checks for
ISO-C++ ('98) conformance. However, I'm not sure if g++ itself is 100%
standard conformous. I think not. But it should do the job.
Jul 22 '05 #3

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

Similar topics

4
by: Heejeong Lee | last post by:
I am going to begin following project Description of the project: One of the proposed ways of storing XML is to "shred" the structure of the XML document and insert it into a relational...
3
by: qushui_chen | last post by:
How can I make C# programe start with windows? who have these example??? I hear use regedit to use.
1
by: jainarayan5484 | last post by:
Hi all, I am Starting Java. So I want to Know that How Can We Prepare java Environment on computer i.e Requirement to run java programe pls help me ...
3
by: mabubakarpk | last post by:
I am facing problem when I open vb6.0 exe file. I make programe in vb6.0 and I deploy its exe in different computers when I open this exe file it gives me message. "The Instruction at "0x2682bacf"...
1
by: Marco | last post by:
Hi, I have know that signal will interrupt some kind low speed system call like pipe. But how to design a program that both support signal and pipe? I have a mplayer.py to play movie via...
4
by: sunboy | last post by:
http://hiphotos.baidu.com/haozi1982/pic/item/4839f8362dd738380a55a983.jpg Hi,everyone! Like this picture,it's from Access for choice tables to search .In my C# programe i want to use like this...
7
by: xiaolim | last post by:
hi, sorry to disturb again, currently i have an assignment on stacks and as show in the the title, i need to use stacks to determine palindrome. i've done part of my code, here it is: //...
1
by: mishrapriyabratakumar1 | last post by:
computer programe
2
by: 7arame | last post by:
i want to know how we can write programe add,sub,divid,multible the matrix in c++,,,,,,, and if u can give to me the code i will be thanxfull for u......
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.