Results 1 to 1 of 1

Thread: Generate definition file in different qt version

  1. #1
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Question Generate definition file in different qt version

    Dear all,

    I used Qt4.7.3 and mingw4.4 to generate definition file like this

    <.def File>
    EXPORTS
    A@1
    B@2
    C@3
    D@4

    Here is my qt pro setting
    QMAKE_LFLAGS += -output-def=DefFileNamePath

    However, now I use Qt4.8.6 and mingw4.8.2 to generate definition file.
    The above method in qt pro setting is not work. (It generate nothing.)
    So, I change another way like this in qt pro setting
    (https://forum.qt.io/topic/52907/defi...file-with-qt/4)

    <.def File>
    EXPORTS
    _ZTI15DLLE @1 DATA
    _ZTI16DLLF @2 DATA
    _ZTI17DLLG @3 DATA
    _ZTI18DLLH @4 DATA
    A@1
    B@2
    C@3
    D@4

    Here is my qt pro setting
    QMAKE_LFLAGS += -Wl,--output-def,DefFileNamePath

    if i use "QMAKE_LFLAGS += -Wl,--output-def,DefFileNamePath" this way to generate definition file,
    it will cause unexpected error like crash when i use relate DLL later.

    i have two questions:

    (1) What difference between "QMAKE_LFLAGS += -output-def=DefFileNamePath" and "QMAKE_LFLAGS += -Wl,--output-def,DefFileNamePath"?

    (2) Is there any way to generate the same definition file format whatever in qt4.7.3+mingw4.4 or qt4.8.6+mingw4.8.2 ?

    please give me some advice

    thanks!
    Last edited by BigHeadSammy; 28th November 2016 at 06:57.

Similar Threads

  1. Generate a file with Datetime
    By StarRocks in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2013, 21:55
  2. how to generate sis file with qt
    By fareenafatima in forum Newbie
    Replies: 2
    Last Post: 27th February 2011, 18:53
  3. how to generate a PDF file with qt?
    By ghnie in forum Qt Programming
    Replies: 1
    Last Post: 25th March 2010, 07:23
  4. how to generate debug file???
    By sudheer in forum Qt Tools
    Replies: 2
    Last Post: 1st May 2008, 23:03
  5. how can i generate .cpp file in QT 4.3.0
    By gamitkumar in forum General Programming
    Replies: 4
    Last Post: 3rd September 2007, 22:23

Tags for this Thread

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.