Results 1 to 3 of 3

Thread: how can I use definetions in header files for conditional compiling at .pro file ?

  1. #1
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how can I use definetions in header files for conditional compiling at .pro file ?

    hello,

    I read qmake document, but do not know how to use definitions in header files for conditional compiling at .pro file

    I mean if I have #define PROJECT1 at "macro.h", then I can test (or read) its definition at "project.pro". It must not have false respond to commented ones (i.e. //#define PROJECT1 or /*#define PROJECT1*/)

    or vice-versa, at least how can I use defined variables in "project.pro" (such as VARNAME = PRJ1) for "macro.h" ?

    I will be appreciated with your comments.

    navid
    Last edited by navid; 26th February 2010 at 07:53.

  2. #2
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how can I use definetions in header files for conditional compiling at .pro file

    or how can I use defined variables in a third file by these two .h and .pro files ?

  3. #3
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how can I use definetions in header files for conditional compiling at .pro file

    or even how can I write a bash file or script to read one file and set other file(s)?

Similar Threads

  1. Strange Errors while compiling (QT Header Files)
    By DrDonut in forum Qt Programming
    Replies: 5
    Last Post: 21st May 2009, 13:10
  2. header files problems
    By dognzhe in forum General Programming
    Replies: 1
    Last Post: 18th May 2009, 08:00
  3. A good system on header files
    By baray98 in forum General Programming
    Replies: 3
    Last Post: 22nd January 2009, 23:17
  4. header files not getting included
    By nimmyj in forum Installation and Deployment
    Replies: 1
    Last Post: 19th December 2006, 06:18
  5. qt3 themes example: missing header files?
    By nikita in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2006, 12:12

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.