Results 1 to 2 of 2

Thread: what ldflags?

  1. #1
    Join Date
    Jul 2008
    Posts
    48
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default what ldflags?

    Hi guys,

    I'm trying to write a command line tool with QFile.. I don't want to use qmake -project.. qmake and qmake. I'm using my own Makefile.

    I got the headers... but I don't know where I get the library.. this is the error I get when I try to make, and how do I know which Qt libraries I need to include in the LDFlags of my makefile?

    Undefined symbols:
    "QFile:pen(QFlags<QIODevice::OpenModeFlag>)", referenced from:
    _main in main.o
    "QString::fromAscii_helper(char const*, int)", referenced from:
    _main in main.o
    "QString::free(QString:ata*)", referenced from:
    _main in main.o
    _main in main.o
    "QFile::~QFile()", referenced from:
    _main in main.o
    _main in main.o
    "QFile::QFile(QString const&)", referenced from:
    _main in main.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    Ted.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: what ldflags?

    1. Why not use qmake?
    2. You are missing the QtCore library.

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.