what is meant by DEFINES and INCPATH
-
in https://doc.qt.io/qt-5/moc.html#writing-make-rules-for-invoking
moc $(DEFINES) $(INCPATH) $< -o $@
what is meant by DEFINES and INCPATH? -
in https://doc.qt.io/qt-5/moc.html#writing-make-rules-for-invoking
moc $(DEFINES) $(INCPATH) $< -o $@
what is meant by DEFINES and INCPATH?@micha_eleric From the link you posted:
"Both examples assume that $(DEFINES) and $(INCPATH) expand to the define and include path options that are passed to the C++ compiler. These are required by moc to preprocess the source files."
Define options are those defined using -D parameter (gcc), like -DSOME_DEFINE=1, those defines can be checked in code like: #ifdef SOME_DEFINE
INCPATH simply tells moce where to look for header files. -
@micha_eleric From the link you posted:
"Both examples assume that $(DEFINES) and $(INCPATH) expand to the define and include path options that are passed to the C++ compiler. These are required by moc to preprocess the source files."
Define options are those defined using -D parameter (gcc), like -DSOME_DEFINE=1, those defines can be checked in code like: #ifdef SOME_DEFINE
INCPATH simply tells moce where to look for header files.@jsulm said in what is meant by DEFINES and INCPATH:
then Iassume
there is some place on qt web site, that says what DEFINEs are
-
@jsulm said in what is meant by DEFINES and INCPATH:
then Iassume
there is some place on qt web site, that says what DEFINEs are
@micha_eleric I don't understand: the link you posted explains what DEFINES is.
#define itself is a C/C++ feature.
https://www.cprogramming.com/reference/preprocessor/define.html -
@micha_eleric I don't understand: the link you posted explains what DEFINES is.
#define itself is a C/C++ feature.
https://www.cprogramming.com/reference/preprocessor/define.html@jsulm the link i posted, used DEFINES, four times.
right now DEFINES =
#define =
-D parameter =
nothing, zero, blank, not even a white space
aint got a clue what value to put in -D parameter