same filename cause multiple definition
-
I have 2 file
mainmodule/dispatcher.cpp
log4qt/dispatcher.cppjust have the same name,there is no connection between this two files.
when I run build,I get "multiple definition" error.
I found same issue in here 13 years ago https://www.qtcentre.org/threads/40338-qmake-multiple-definition
and have no solution. -
@Neether said in same filename cause multiple definition:
have no solution
Don't use the same filename in one qmake project.
-
@Christian-Ehrlicher thank you , This feature is unbelievable in 2024
-
@Neether said in same filename cause multiple definition:
This feature is unbelievable in 2024
This has nothing to do with a 'feature' or similar. It's just a problem of duplicate symbols in your code - this is simply not allowed (even not in other programming languages).