c++ linux API reference

Posted on 2007-10-09
Last Modified: 2008-02-07

When developing for windows, I can find the win32 API docs at Where do you go to find equivalent information for linux based systems? For example, I just want to display a message box, in windows I'd do:

    #include <windows.h>
    MessageBox(0, "hi", "hi", 0);

there must be an equivalent in linux, where do I go to find that out (besides posting every question here at EE)

Question by:DJ_AM_Juicebox
    LVL 4

    Expert Comment

    The GTK+ Reference is probably where you're looking if you're programming under GNOME.

    I've just started looking into programming under Linux using GTK.
    LVL 39

    Expert Comment

    >>>> find equivalent information for linux based systems?
    Note, while Windows has an integarted GUI, LINUX is a UNIX system which can be operated with or without a desktop. And it can have different desktops, . g. GNOME and KDE. So, you would need to read the docs and the API's of the desktop you are using.

    Regards, Alex
    LVL 18

    Expert Comment


    I'm not sure if MUST exist a similar programming simplicity... Probably, it SHOULD exist...
    As pointed by itsmeandnobodyelse, Windows (from 95 version) is Operating System and Graphics User Interface in an integrated set (before W95, it was DOS + Windows 3.1). Linux is the O.S. (like Unix) and additional Xfree (like XWindow) is the GUI. Both Linux and Xfree aren't integrated as Windows is.

     Direct programming in Xfree86 is a very hard task (this is what you are facing now). The solution is to use a higher level library, like KDE (for Unix we use Motif). Even such library is, in some cases, more complicated than Windows programming.

    In compliment to the previous comments, let me suggest a look at

    LVL 86

    Accepted Solution

    Well, there is an "API reference", e.g. ("The Linux Kernel API"). Yet, as already noted, "Linux"  itself is only the kernel, without any graphical subsystem. IIRC you are using wxWidgets for that purpose, so the above along with pretty much is where to look at.
    LVL 8

    Expert Comment

    The following tools can be used for Linux to display a message box. There is additional help on other functions as well.

    using GTK:

    using Qt:

    using wxWidgets:

    Good site with an explanation about window managers and the X Window system:

    Window managers:

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now