"Unresolved external symbol" even when the linker can find the function body

Feb 27, 2021 at 4:07am
Hello, I'm getting an extremely strange error, I have utility functions declared in a header file and the function bodies in Utils.cpp. I have defined function body in the .cpp file but it still gives me "unresolved external symbol" for some reason.
Feb 27, 2021 at 4:32am
Is utils.cpp part of your project?

When you do "build all", do you see utils.cpp being compiled?
Feb 27, 2021 at 4:51am
I found the issue and fixed it, My issue was that my Utils.cpp file had the exact same name of a Utils.cpp file in a library I was using. I renamed to "Utility.cpp" and "Utility.hpp" and it worked.
Topic archived. No new replies allowed.