Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Jul 18, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

How portable is C++?

How portable is C++ as a programming language (in terms of different operating systems and hardware)?

C++ is a fairly new language that until recently did not specify any standard library components. The draft ANSI/ISO specifies the precise definition of the language and its libraries. So once all vendors become 100 percent standard-compliant, and you write code using only standard language features and library calls, your code will be fully portable..

In reality, almost all compilers are different in one way or another. Some have included the more recent features like exceptions templates, name spaces and newer keywords,. while others have not.

Vendors tend to include OS-specific libraries so people can develop applications for that platform, so any program using these special libraries will not port very easily.

The strategy in the last few years has been to use third-party libraries like RogueWave or Booch components, and avoid the more advanced features of the language like exception handling.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date