Hello, I am new to CodeBlocks and C++.
I am trying out QT5 (on Ubuntu) following
https://zetcode.com/gui/qt5/introduction/ and can't figure out how to point CodeBlocks to the header files.
#include <QtCore>
#include <iostream>
int main() {
std::cout << "Qt version: " << qVersion() << std::endl;
}
I get "no such file or directory" on the #include <QtCore> line.
If I type it in manually CodeBlocks auto completes the include and I can see many QT headers available such as QVersionNumber
When I try to run this code the header file named in qversionnumber.h "<QtCore/qnamespace.h>" is not found.
#include <qt5/QtCore/QVersionNumber>
int main() {
return 0;
}
I used "whereis qt5" and added all (3) the directories to link libraries and to search directories but it didn't fix the issue.
I know I am missing something.
How do I get CodeBlocks to see these headers?