Jump to content

Linux API?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
shibbythestoner

shibbythestoner

    Programmer

  • Members
  • PipPipPipPip
  • 135 posts
Hey guys

I was wondering if there's a similar way of coding API the way you can with windows.h on Windows, but in Linux. Not to say I know much beyond things like MessageBox(), Sleep(), Beep(), FreeConsole(), and other simple windows.h functions, but it'd be nice to know ways to implement these in Linux.
I'll be greatful for any suggestions.
Posted Image

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Linux has both a Linux API, and a Linux Kernel API.

To make GUI-stuff in Linux you need a GUI toolkit, though. But don't worry, there's a lot of nice GUI toolkits, like wxWidgets, Qt and GTK+.

#3
shibbythestoner

shibbythestoner

    Programmer

  • Members
  • PipPipPipPip
  • 135 posts
Thanks very much, v0id!
Posted Image

#4
yulin11

yulin11

    Newbie

  • Members
  • Pip
  • 7 posts
Yes, i think so.


codeuu

#5
G_Morgan

G_Morgan

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 537 posts
Basically I'd say you should look towards Posix (which is the Unix standard which Linux supports) and Gtk+. Qt is a fine toolkit but has licensing issues. If you want to use Qt your work must be released in a GPLv2 compatible way or you must buy a proprietary license. Gtk+ isn't as good but is LGPL so you can do your work in whatever license you want provided you dynamically link (which is likely) as opposed to statically link.

#6
upredsun

upredsun

    Newbie

  • Members
  • Pip
  • 9 posts
you can reference GNU C book
http://www.upredsun.com
**Easily and automatically build tcp-based or udp-based network protocol source code**