The Wayback Machine - https://web.archive.org/web/20210210104056/https://github.com/github/gitignore/pull/3538
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated C++.gitignore to include *ilk, *pdb files #3538

Open
wants to merge 1 commit into
base: master
from

Conversation

@adi-g15
Copy link

@adi-g15 adi-g15 commented Sep 30, 2020

I have included the incremental linker files (.ilk) and program database files (.pdb), to .gitignore since they are generated by MSVC compiler during developmental builds, so they should be in the version control.

Some Sources ->

From Microsoft, on .ilk Source

If the .ilk file is missing, LINK performs a full link and creates a new .ilk file. If the .ilk file is unusable, LINK performs a nonincremental link

Microsoft Docs, on .pdb Source

These mapping files link the debugger to your source code, which enables debugging.
When you build a project from the Visual Studio IDE with the standard Debug build configuration, the compiler creates the appropriate symbol files

Apart from MS source links, here is a SO question regarding it ->
https://stackoverflow.com/questions/10867186/why-do-i-need-ilk-pdb-and-exp-files

@53jk1
53jk1 approved these changes Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants