how to get compiler to find library? [message #1847007] |
Tue, 12 October 2021 01:57  |
michael bridges Messages: 9 Registered: September 2021 |
Junior Member |
|
|
using eclipse Version: 2018-09 (4.9.0)
on kubuntu 16 (i think)
i have tried usr/include/qt4 and usr/include/qt4/QtGui
usr/include/qt4 did not throw an error in all spots shown, but usr/include/qt4/QtGui caused an error in compiler -> includes -> (`include)
the compiler can not find what i can.
how to get compiler to find library?
//******************* edit *********************
i added qt4 under compiler -> includes -> (`include)
i get:
g++ -std=gnu++11 -std=c++11 -lusr/include/qt4 -Iusr/include/qt4 -includeqt4 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"CComPort.d" -MT"CComPort.o" -o "CComPort.o" "../CComPort.cpp"
cc1plus: fatal error: qt4: No such file or directory
guessing that (`include) is usr/include/
//*******************edit***********************
i commented out #include <QtGui>, and #include <QApplication>, throws the same error.
QApplication is a file in QtGui directory.
what am i doing wrong?
[Updated on: Wed, 13 October 2021 02:34] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: how to get compiler to find library? [message #1847162 is a reply to message #1847161] |
Sun, 17 October 2021 03:46  |
David Vavra Messages: 1427 Registered: October 2012 |
Senior Member |
|
|
Quote:Can you comment on why CDT cannot find the library
You've been told many times: CDT has no idea what you are
trying to accomplish. It takes what you've told it and passes it
on to the compiler and ONLY when it is generating a makefile.
If it passes along incorrect information that is because you
gave it incorrect information.
|
|
|
Powered by
FUDForum. Page generated in 0.01957 seconds