S
S
sitev_ru2016-06-03 14:42:24
linux
sitev_ru, 2016-06-03 14:42:24

Qt. How to include your own static libraries under Linux?

I wrote a Linux project using Eclipse C++. Finally decided to switch to Qt Creator.
I created projects for my static libraries, everything compiles great.
Now I am creating an application. They connect libraries, but nothing gives an error "undefined reference ..."
What could be wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2016-06-03
@fshp

#path/to/libdir/libmylib.a
LIBS *= -Lpath/to/libdir -lmylib

Y
Yuri Chudnovsky, 2016-06-03
@Frankenstine

ldd will help you see which libraries are declared and not found

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question