Hello,
First of all:
I got my code in debug mode compiled, but the compiler says sometimes that one of my functions is defined multiple times with a hint where it is defined for the first time. I checked the code but it is only defined there and thats it. The multiple definition error points me to a moc_ file where the function definition is. So I deleted this code and compiled it a second time and it worked.

Now in release mode:
When i compile it in release mode i get the same errors of multiple definitions. When i click the first defined here error it points me to the code where the functions is defined, as expected. But when I click the multiple definition error, it says that the moc_ file is not found.

Here are the three errors I get:
  • multiple defintion of `function name`
  • first defined here
  • collect2: Id returned 1 exit status


What do I have to do to compile it in release mode?