I have 3 libraries that I have to use, of course I've got the header file associated for each one.
To include these libraries I write this in my .pro
file :
LIBS += -L $$quote(C:/libs/ARINC825/lib/VC/amd64/) -larinc825
LIBS += -L $$quote(C:/libs/SDK/lib/VC/amd64/) -lntcan
LIBS += -L $$quote(C:/libs/SDK/lib/VC/amd64/) -lirigb
These libraries are for the use of a CAN card.
When I compile, the compilator can't find the functions associated to the first library : -larinc825
Here's an error line for example : undefined reference to arincHandleOpen
Can you explain me why my include fail ?
Thanks.
PS : I did some research, and try to use this topic Adding external library into Qt Creator project but it gives no result.
EDIT : I'm on QT5, I can use the minWG compiler or the VisualStudio 2010 compiler.
EDIT2 : Don't know why, but this seems to works :
LOCATION1="C:\Program Files\ESD\CAN\ARINC825\lib\VC\i386"
INCLUDEPATH += "$$LOCATION1/include"
QMAKE_LIBDIR += "$$LOCATION1"
LIBS += -larinc825
LOCATION2="C:\Program Files\ESD\CAN\SDK\lib\VC\i386"
INCLUDEPATH += "$$LOCATION2/include"
QMAKE_LIBDIR += "$$LOCATION2"
LIBS += -lirigb -lntcan