Question regarding Multiplatform (Linux AND Windows)
Hi,
I have to create an application which can be executed in Linux and Windows. My question is :
1: Will i have two executables. Each for an environment?
2: Do i have to write two totally different codes for different enviroments. If yes, is there anyway to MAP the code from one enviroment to another.
Thanks
Re: Question regarding Multiplatform (Linux AND Windows)
Quote:
Originally Posted by
salmanmanekia
I have to create an application which can be executed in Linux and Windows. My question is :
1: Will i have two executables. Each for an environment?
If you use C++, yes.
Quote:
Originally Posted by
salmanmanekia
2: Do i have to write two totally different codes for different enviroments. If yes, is there anyway to MAP the code from one enviroment to another.
That depends on what kind of application you want to write. For most features that are not supported by standard C++, there exist cross-platform libraries. When you use those, you only need to program against the library API, which is the same for each platform. You'll still have to compile your code (and possibly the library) for each target platform.
Re: Question regarding Multiplatform (Linux AND Windows)
Quote:
Originally Posted by
salmanmanekia
is there anyway to MAP the code from one enviroment to another.
Easiest is to use a portable application framework such as Qt,
http://qt.nokia.com/
Re: Question regarding Multiplatform (Linux AND Windows)
Thanks guys, It was helpful