Thursday, July 9, 2009

A question about C++?

with C++, how can I write the programs that can run in different


platforms ? does it means that the software can only run in windows platform by using MS Visual C++ tool ? how about C++ builder ?

A question about C++?
You can certainly write portable C++ code. Doing so would mean avoiding platform specific code, libraries, and language extensions that are not part of the C++ standard.





You cannot, of course, build portable executables no matter what IDE you use, whether on the Windows or *nix platforms. That is the advantage of a language like Java.
Reply:get linux, it's free..... but with cygwin (a unix shell for windows) you should be able run compiled progs..... or are you asking about making them like .exes???


No comments:

Post a Comment