I have a solution, lets say the name is mySolution. I then have a project called project1. I have multiple .cpp files in that project and when i run the code, it comes up with the error LNK2005 and LNK1169. How do i fix it so i can have more that one .cpp file and not have errors?
Asked
Active
Viewed 19 times
0
4lek5
- 1
-
Perhaps a better duplicate is [error LNK2005, already defined?](https://stackoverflow.com/questions/10046485/error-lnk2005-already-defined), which is the opposite problem - not undefined by defined more than once. – BoP Mar 06 '22 at 09:57