Skip to content

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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
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

Copy link

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄

@github-actions github-actions bot added the stale label May 30, 2025
@adi-g15
Copy link
Author

adi-g15 commented May 30, 2025

Edit to original description:

since they are generated by MSVC compiler during developmental builds, so they should should NOT be in the version control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants