|
-
September 3rd, 2012, 12:34 PM
#1
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
-
September 3rd, 2012, 01:24 PM
#2
Re: Question regarding Multiplatform (Linux AND Windows)
 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.
 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.
Last edited by D_Drmmr; September 3rd, 2012 at 05:23 PM.
Reason: added 'not'
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
September 3rd, 2012, 03:06 PM
#3
Re: Question regarding Multiplatform (Linux AND Windows)
 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/
-
September 3rd, 2012, 07:26 PM
#4
Re: Question regarding Multiplatform (Linux AND Windows)
Thanks guys, It was helpful
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|