Menu

Compiling QT in Dev-C++ 4.9.8.0

2003-04-11
2012-09-26
  • Patrik Andersson

    Does anybody know how to compile a Qt project in devcpp? When I compile I get lots of messages starting with:
    [Linker error] undefined reference to
    How do I fix it?

     
    • upcase

      upcase - 2003-04-15

      Simply answer: You can't!
      Even if you download a new Qt version and got all the include files, you still haven't got gcc compatible lib to link. You could go and buy Qt ( just don't ) and then get the sources. You could then try to extract the sources without starting the compilation (and deletion of the sources) automatically.
      Qt for windows is designed to be used with MS VC++ and comes with full integration for Visual Studio. So far I haven't heard of anybody who was able to compile it using gcc. And even if someone would do it, it would be a pain in the ass to use. I wouldn't like the idea of invoking the moc and uic over and over again by hand, because Dev-Cpp would have no integration.
      If you're looking for an alternative: Give wxWindows a try. It's free, comes as a source release and has almost the same features qt has. Believe me, I work with Qt on my job and I can tell you that for a commercial thing (on windows) it isn't good at all. That's why I stay away from it at home :)
      BTW: If you try wxWindows, maybe this adress helps you when compiling and setting it up:
      http://www.bg.bib.de/~bbsh1akr
      I set up a little tutorial there. Got a devpack there, too.

      upcase

       

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.