Results 1 to 2 of 2

Thread: QtCreator subdirs - Dependencies of project

  1. #1
    Join Date
    Nov 2011
    Posts
    79
    Thanks
    5
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QtCreator subdirs - Dependencies of project

    I have my project organized with subdirs template:
    Project
    ---Dir1
    ---Dir2
    ---LibDir

    Every time when I make changes in LibDir and press the Build button I got error from Dir1 or Dir2 like:
    error: undefined reference to `_imp___ZN6LibDir8FuncE7QStringS0_bbb'

    So how can I set that Dir1 was dependent on LibDir?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtCreator subdirs - Dependencies of project

    You can use CONFIG += ordered in your main project and have the lib projects listed first.

  3. The following user says thank you to aamer4yu for this useful post:

    folibis (13th September 2013)

Similar Threads

  1. Using QtCreator components in my own project
    By Auliyaa in forum Qt Programming
    Replies: 0
    Last Post: 22nd March 2012, 10:31
  2. QMake Call a pre-written makefile from a SUBDIRS project
    By Mookie in forum Qt Tools
    Replies: 0
    Last Post: 12th December 2011, 14:05
  3. Project flags in QtCreator
    By HyperB in forum Qt Tools
    Replies: 1
    Last Post: 14th May 2009, 12:38
  4. Using the subdirs TEMPLATE, having problems with dependencies
    By sadastronaut in forum Installation and Deployment
    Replies: 1
    Last Post: 3rd April 2009, 19:20
  5. qmake project dependencies
    By akos.maroy in forum Newbie
    Replies: 1
    Last Post: 15th June 2008, 13:52

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.