Multiple Operating System Program

This is a discussion on Multiple Operating System Program within the Windows Programming forums, part of the Platform Specific Boards category; Hey, there! I was wondering if there is any library, API, or anything that lets you write a windows program ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    47

    Multiple Operating System Program

    Hey, there!

    I was wondering if there is any library, API, or anything that lets you write a windows program with it, that will be compatible with all operating systems. Kinda like GLUT.

    Thanks!

    ~Matt

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    No. By definition a Windows application will not be compatible with any other platform unless you use an emulator like Wine (for *NIX platforms).
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    47
    There are windows in Macs and Linux and stuff, though. Maybe I put this post in the wrong section. But I see all these people who have programs and stuff that are compatible with all operating systems, and there's only one .exe to download!

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Anything that compiles to machine code will only work for the machine it was compiled for, operating systems standardize the machine code for their operating system. Therefor in general no compiled program will run on multiple OSes without something to emulate the OS it was compiled for.

    Source on the other hand can be cross platform, just takes some practice and care that you don't use stuff like system calls and libraries that are not cross platform. Then you can compile the program on what ever OS that you want to release for.

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    Quote Originally Posted by Matt3000
    Hey, there!

    I was wondering if there is any library, API, or anything that lets you write a windows program with it, that will be compatible with all operating systems. Kinda like GLUT.

    Thanks!

    ~Matt
    what do you mean by "compatible?" if you hope to run a windows exe on a linux machine, you can only hope that wine can handle it.

    and what do you mean by windows program? probably you just mean the gui.
    there are hundreds of cross-platform gui apis (e.g. qt, but there is a "better" one (especially because of the licence) - but i forgot the name right now).

    anyway, its no magic writing a code in windows that also compiles on other platforms and vice versa - but that requires using the appropriate apis.
    signature under construction

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    47
    Okay, thanks. I think the cross-platform gui api thing was what I was looking for! TO GOOGLE AND WIKIPEDIA! LOL. Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 08-16-2007, 11:43 PM
  2. Replies: 5
    Last Post: 08-14-2007, 10:34 AM
  3. Operating system construction
    By AdamLAN in forum Tech Board
    Replies: 7
    Last Post: 03-05-2005, 12:31 PM
  4. Microsoft = The Best Operating System
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 92
    Last Post: 02-08-2002, 12:32 PM
  5. Variable Allocation in a simple operating system
    By awkeller in forum C Programming
    Replies: 1
    Last Post: 12-08-2001, 01:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21