Unsolved warning or else ?
-
I am getting this error (C++) so why is liker missing ?
Of I remove the QMAKE_CXXFLAGS_WARN_OFF: I get perfect compile .Qt_5/5.12.2/gcc_64/mkspecs/features/data/dummy.cpp
g++: warning: QMAKE_CXXFLAGS_WARN_OFF: linker input file unused because linking not done
g++: error: QMAKE_CXXFLAGS_WARN_OFF: linker input file not found: No such file or directory
make[1]: *** [Makefile:730: moc_predefs.h] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/qy/Qt/Examples/Qt-5.12.12/widgets/mainwindows/mdi'
make: *** [Makefile:52: sub----------home-qy-Qt-Examples-Qt-5-12-12-widgets-mainwindows-mdi-make_first] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory '/mnt/sdd6/build-MDI_Bluetooth-Desktop_Qt_5_12_12_GCC_64bit-Debug/SYSTEM'
make[1]: Nothing to be done for 'first'. -
Since you fail to share what you are actually putting in your PRO file we are left to guess what you are trying to achieve, and how you have managed to break it.
I guess that you are attempting to disable the normal state of affairs, where the compiler is directed to issue every possible warning.
Observations:- The correct way to disable (almost) all warnings is:
CONFIG += warn_off
(docs). - You should not need to disable warnings. Read the warnings, understand why there is a warning, and address it in your code. The compiler writers are more aware of what is a risk to correct operation of your code than either you or I.
- The QMAKE_* variables are generally automatically managed and rarely need direct intervention.
- The correct way to disable (almost) all warnings is:
-
This post is deleted!