How to connect libalglib to QT project [UBUNTU]?
up vote
0
down vote
favorite
I am using QT creator on my ubuntu 16.04. I need to include some library from libalglib.
I installed alglib by using this command"
sudo apt-get install libalglib-dev
After successful install I tried to include library in my project
I added this in my .pro file:
INCLUDEPATH += /usr/include/libalglib
That is why now i can include alglib headers
#include <libalglib/specialfunctions.h>
using namespace alglib;
But it still write that is undifined reference:
main.cpp:178: undefined reference to `alglib::invchisquaredistribution(double, double)'
I know that I need to add something into LIBS parameter, I watched this
how to connect the library alglib in QT C++
but I am still do not know what i need to add.
Please help.
qt ubuntu
add a comment |
up vote
0
down vote
favorite
I am using QT creator on my ubuntu 16.04. I need to include some library from libalglib.
I installed alglib by using this command"
sudo apt-get install libalglib-dev
After successful install I tried to include library in my project
I added this in my .pro file:
INCLUDEPATH += /usr/include/libalglib
That is why now i can include alglib headers
#include <libalglib/specialfunctions.h>
using namespace alglib;
But it still write that is undifined reference:
main.cpp:178: undefined reference to `alglib::invchisquaredistribution(double, double)'
I know that I need to add something into LIBS parameter, I watched this
how to connect the library alglib in QT C++
but I am still do not know what i need to add.
Please help.
qt ubuntu
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using QT creator on my ubuntu 16.04. I need to include some library from libalglib.
I installed alglib by using this command"
sudo apt-get install libalglib-dev
After successful install I tried to include library in my project
I added this in my .pro file:
INCLUDEPATH += /usr/include/libalglib
That is why now i can include alglib headers
#include <libalglib/specialfunctions.h>
using namespace alglib;
But it still write that is undifined reference:
main.cpp:178: undefined reference to `alglib::invchisquaredistribution(double, double)'
I know that I need to add something into LIBS parameter, I watched this
how to connect the library alglib in QT C++
but I am still do not know what i need to add.
Please help.
qt ubuntu
I am using QT creator on my ubuntu 16.04. I need to include some library from libalglib.
I installed alglib by using this command"
sudo apt-get install libalglib-dev
After successful install I tried to include library in my project
I added this in my .pro file:
INCLUDEPATH += /usr/include/libalglib
That is why now i can include alglib headers
#include <libalglib/specialfunctions.h>
using namespace alglib;
But it still write that is undifined reference:
main.cpp:178: undefined reference to `alglib::invchisquaredistribution(double, double)'
I know that I need to add something into LIBS parameter, I watched this
how to connect the library alglib in QT C++
but I am still do not know what i need to add.
Please help.
qt ubuntu
qt ubuntu
edited Nov 11 at 7:51
asked Nov 11 at 7:45
Адель Фахрутдинов
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I find the clue from the deb file.
/usr/lib/x86_64-linux-gnu/libalglib.so
LIBS += -lalglib
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I find the clue from the deb file.
/usr/lib/x86_64-linux-gnu/libalglib.so
LIBS += -lalglib
add a comment |
up vote
0
down vote
I find the clue from the deb file.
/usr/lib/x86_64-linux-gnu/libalglib.so
LIBS += -lalglib
add a comment |
up vote
0
down vote
up vote
0
down vote
I find the clue from the deb file.
/usr/lib/x86_64-linux-gnu/libalglib.so
LIBS += -lalglib
I find the clue from the deb file.
/usr/lib/x86_64-linux-gnu/libalglib.so
LIBS += -lalglib
answered Nov 11 at 10:12
张铁男
615
615
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246788%2fhow-to-connect-libalglib-to-qt-project-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown