1
General / Re: Visual Studio Linker Errors (out of nowhere)
« on: August 25, 2023, 05:52:54 am »
Resolved! (for now, will update)
Solution is after the paragraph
After seeing that LNK4042 does not exist on Microsoft's own linker error page (see link #1 at bottom), I decided to investigate. Turns out, there are people with the same issue as me going as far back as 13 years ago! (see link #2 & #3) After my own solution (deleting the <filename>.obj file referenced by the LNK4042 error in the debug folder of my project) somewhat worked (i just kept deleting it ), I implemented the solution as follows:
SOLUTION:
Open the project properties and the change the value under
(so far, works for me. again, will update)
1. https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-errors-and-warnings
2. https://stackoverflow.com/questions/3729515/visual-studio-2010-2008-cant-handle-source-files-with-identical-names-in-diff
3. https://stackoverflow.com/questions/3695174/visual-studio-2010s-strange-warning-lnk4042
Solution is after the paragraph
After seeing that LNK4042 does not exist on Microsoft's own linker error page (see link #1 at bottom), I decided to investigate. Turns out, there are people with the same issue as me going as far back as 13 years ago! (see link #2 & #3) After my own solution (deleting the <filename>.obj file referenced by the LNK4042 error in the debug folder of my project) somewhat worked (i just kept deleting it ), I implemented the solution as follows:
SOLUTION:
Open the project properties and the change the value under
Code: [Select]
C++ -> Output Files -> Object File Name
to be the following:Code: [Select]
$(IntDir)/%(RelativeDir)/
(taken from link #3)(so far, works for me. again, will update)
1. https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-errors-and-warnings
2. https://stackoverflow.com/questions/3729515/visual-studio-2010-2008-cant-handle-source-files-with-identical-names-in-diff
3. https://stackoverflow.com/questions/3695174/visual-studio-2010s-strange-warning-lnk4042