and adding to the above, people often think the development environment is part of the language; it's not. So, while MS Visual Studio runs on Windows, it doesn't on LINUX/UNIX. But there are other environments that do.
Compilers are also different and may support different versions or extensions to the language from one platform to another.
What difference between c++ in windows and in linux?
Mainly it's the compiler. Subtle differences between compilers can cause problems. It's important to target compilers that adhere strictly to the C++ standard when developing cross platform code to ease in compiling. Sometimes internal standard library functionality can differ, and can cause problems too.
This page pertains to C# vs. C++ but also includes some examples of discrepancies and ambiguities of C++ compilers: http://weblogs.asp.net/kennykerr/archive...
Reply:C++ language itself does not change. What changes is the set of libraries you have to work with. On Windows you can use the Windows API, MFC which wraps the API, ATL, or the standard library which is available on both operation systems. On linux you have the standard library and the POSIX functions available, etc.
Basically the language doesn't change, it is the set of libraries you have at your disposal.
gardenia
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment