CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    6

    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

  2. #2
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    Re: Question regarding Multiplatform (Linux AND Windows)

    Quote Originally Posted by salmanmanekia View Post
    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 View Post
    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

  3. #3
    Join Date
    May 2009
    Posts
    2,413

    Re: Question regarding Multiplatform (Linux AND Windows)

    Quote Originally Posted by salmanmanekia View Post
    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/

  4. #4
    Join Date
    Aug 2008
    Posts
    6

    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
  •  





Click Here to Expand Forum to Full Width

Featured