Menu

OTK GUI development

Yacine
2007-10-14
2012-09-26
  • Yacine

    Yacine - 2007-10-14

    Hey guys,
    I'm trying to develop a simple GUI for my project using C but all the devpaks i've found for dev-cpp are for C++.
    I've found OTK ( http://otk.sourceforge.net/ ) which does exactly what i need but I have no idea how to use it with dev-cpp. Can anyone help me with that or are the only toolkits i can use the devpak ones?

    thanks,

     
    • Anonymous

      Anonymous - 2007-10-15

      According to the project's site it works with MinGW so it therefore works with Dev-V++.

      This http://otk.sourceforge.net/using_mingw.html indicates that you need the following linker options: -lglu32 -lopengl32 -lwinmm -lgdi32, and http://otk.sourceforge.net/compiling.html implies that you simply need to add Otk_lib.c to your project.

      DO NOT follow the advice on that page that suggests that you can use #include "otk_lib/otk_lib.c"!!! It is very bad advice, and you have to wonder about the quality of code that would come out of a project that thinks that that is a good idea. Hopefully they have provided some sort of header file as well as the .c file, otherwise create your own.

      Looking at this and other possible C based solutions, I would suggest that if you want to do GUI, C++ is the more appropriate language, and it might just be worth learning the little you need to use an OO framework such as wxWidgets.

       
    • Yacine

      Yacine - 2007-10-15

      Ah excellent.
      Thank you very much.
      I'll look into C++ but right now, i'm just concentrating on getting this done!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.