PDA

View Full Version : what ldflags?



afflictedd2
22nd November 2008, 18:28
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::open(QFlags<QIODevice::OpenModeFlag>)", referenced from:
_main in main.o
"QString::fromAscii_helper(char const*, int)", referenced from:
_main in main.o
"QString::free(QString::Data*)", 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.

wysota
22nd November 2008, 20:17
1. Why not use qmake?
2. You are missing the QtCore library.