Hi,
I've used Qt for two days now, as I need it to make my final project (exam).
I am trying to link a library called "Vortex" to my Qt-project.
First I generate the Makefile;
qmake -o Makefile client
I've appended 'pkg-config vortex --cflags' to CFLAGS and CXXFLAGS in the Makefile;
CFLAGS = <previous flags>... 'pkg-config vortex --cflags'
CXXFLAGS = <previous flags>... 'pkg-config vortex --cflags'
and also added 'pkg-config vortex --libs' to the Makefile, in the LIBS section;
LIBS = <previous libs>... 'pkg-config vortex --libs'
Then I try to compile the code with "make".
This only results in an error message;
undefined reference to 'vortex_init()'
(vortex_init() is a function to initialize the Vortex library)
I have used #include <vortex.h> in source-file, client.cpp.
Am I perhaps linking the library the wrong way?
Bookmarks