Hi,
I created a QT project and I want to link it against a third party's .o object file. Could anyone help me in the right syntax that must be put in the QT project file.
Thanks,
Hi,
I created a QT project and I want to link it against a third party's .o object file. Could anyone help me in the right syntax that must be put in the QT project file.
Thanks,
You would first need to confirm that the object code is for the same architecture and compatible with the linker you are using. For example, Microsoft C++ has a different object code format than GCC.
The object is xxx.o which is compiled on a linux machine with the same version of g++, regardless, this was not my question, my question is how to include and link this xxx.o object file in QT project file.
Forexample, when I link to an object I usually write: LIBS += -L/usr/local/lib -lmath
But this is not the case since my object file is neither ".a" nor ".so".
Anybody has an idea?
That doesn't matter.
Just use LIBS += /home/you/yourobject.o
dexterkd (15th October 2010)
Bookmarks