Results 1 to 14 of 14

Thread: Some advice on how to structure this program?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Some advice on how to structure this program?

    Quote Originally Posted by mrwooster View Post
    Thanks for the help... I have put all my source classes into a static library and when I compile it it produces a load of .o files and a .a file named libXXXX.a
    Relax, this is usual. After all you are making a big change in your project so errors are normal.

    Quote Originally Posted by mrwooster View Post
    But I am having trouble linking it to my GUI program....? I have tried editing the .pro file but I can't seem to get it to work? Where does the libXXXXX.a file need to reside? Do I need the XXXXX.o files as well?
    Yes you need to have lib files. Otherwise GUI will provide you errors.

    Quote Originally Posted by mrwooster View Post
    BTW... I am using QtCreator... is there an easier way to link it using the IDE?
    I dont think so, .pro files are very powerful. You should configure them instead of changing the IDE settings. Then it will be easy for you to port your project to other operating systems.

    I would suggest, to create a test static lib and a test GUI who uses that test lib. Then it will be easy change your actual project.

    All the best.

  2. The following user says thank you to yogeshgokul for this useful post:

    mrwooster (12th August 2009)

Similar Threads

  1. Program crashes on creating new dialog
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 11th June 2009, 11:52
  2. Eclipse Integration and program not starting
    By Cruz in forum Installation and Deployment
    Replies: 1
    Last Post: 16th January 2009, 22:32
  3. Replies: 19
    Last Post: 21st January 2008, 09:13
  4. Version setting in QT Program
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 24th October 2007, 12:07
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.