Sign in to follow this  

Creating a window in Linux

This topic is 3676 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Recently I installed ubuntu on my system and now I want to start programming C++ in Linux. The problem is, I can't find information on how to build windows. While in Windows there are well-documented API tutorials, Linux seems to have none. Can you help me?

Share this post


Link to post
Share on other sites
It's because Linux has no windows. Linux is a kernel. *NIX-like systems often operate without a display. The closest you can get is a framebuffer, but that's kernel and video card dependent.

If all you're after is a window to use with OpenGL or to blit images to, then you need X or, more likely, something like SDL, Allegro or ClanLib.

If what you need is to build a rich client application, then you'll need a toolkit such as Qt, Gtk+, Gtk--, GFC, WxWidgets, The FOX toolkit, FLTK, Ultimate++, etc.

There is no direct equivalent of the Win32 API, if that's what you're looking for. It's either lower level (eg Xlib) or higher level (the toolkits).

Share this post


Link to post
Share on other sites

This topic is 3676 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this