error: multiple definition of `decrease_seq(int, QString)'
Solved
General and Desktop
-
I'm trying to make header file conrain all the common functions in my application
when i include once it goes ok but when i include it in two source files it give me multiple definition error -
@davidlabib
Hi
It seems you have the full function in the HEADER (.h) file ?
You should have like
in .hvoid somefunc( int param ); // JUST the header of the function.
and in .cpp
void somefunc( int param ) {
..code..
}