Jump to content

Make a program compatible with Windows, Mac and Linux

- - - - -

  • Please log in to reply
2 replies to this topic

#1
pierrehs

pierrehs

    Newbie

  • Members
  • PipPip
  • 16 posts
Hello,
I wonder how I can make it compatible software coded in + + compatible on Windows, Mac and Linux.
Can you tell me the procedure to be followed in the design and compilation for this result.
Thank you

#2
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
Simply avoid using platform-specific frameworks and libraries. This includes the Windows-specific .NET, DirectX, and conio.h, the Mac-specific Cocoa API, and the Unix-specific POSIX API. If you want a framework to work with, Mono, GNUStep, Qt, GTK+, and OpenGL are all cross-platform.

You must remember that the source code will be portable, but the binaries won't be. If you want to distribute software to users of Mac, Windows, and Linux, either distribute it as source or compile separate versions for each major platform.
Programming is a journey, not a destination.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Qt, wxWidgets, FLTK, Ultimate++, gtkmm, and many other toolkits will let you write cross-platform programs.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users