CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: c and linux

  1. #1
    Join Date
    Apr 2002
    Posts
    35

    Unhappy c and linux

    I have never worked on linux and unix. Now i need to compile and run my C programs on linux. Can anyboby please guide me with some basic commands and steps to do so

    one more help: is there any interfcae support like MFC (of windows) for linux

    thanks

  2. #2
    Join Date
    Feb 2002
    Posts
    5,757
    One solution is "gcc source.c."

    One good C++ windows programming tool for Linux is Borland Kylix.

    Kuphryn

  3. #3
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    There are two main window managers for Linux, KDE and Gnome. I'm sure you have come across them before.

    KDE uses the QT libraries made by Trolltech (which is a commercial company). These libraries are also available for Windows and the Mac, but you have to pay for them if your program is commercial. They contain a lot of similar things to MFC. To develop with KDE, use KDevelop, it should actually already come with your linux distribution. It is an IDE a bit like VC with integrated help about KDE and QT (provided you have installed the documentation). You can also program Gnome applications with KDevelop. QT and hence KDE is all C++ based with classes etc.

    Gnome uses GTK+. This is another set of libraries that you can use to program windowed applications under Linux. To write simple applications, use Glade. GTK+ is totally LGPL, so you can develop commercial applications with it for free (provided you link dynamically to the gtk+ libraries). GTK+ is also available for Windows, BeOS and the Mac. It uses C-style interfaces, so it's less object oriented.

    I prefer to use GTK+, but that's a personal decision.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  4. #4
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    Borland Kylix is good because it's portable between Windows/Linux, you can do cross-development fairly easy.

    Look also at www.wxwindows.org for another cross-platform windowing library.

    good luck!

  5. #5
    Join Date
    Apr 2002
    Posts
    35
    thanks..
    i think it iwll help me

  6. #6
    Join Date
    Mar 2003
    Location
    Sofia, Bulgaria
    Posts
    48
    And what about fltk GUI OS-portable library? Any opinions?
    "...when the music's over, turn out the lights."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured