-
Notifications
You must be signed in to change notification settings - Fork 1.7k
“Definition not found” even when function is explicitly extern #14331
Copy link
Copy link
Open
Labels
Feature: Create Declaration or DefinitionVisual StudioInherited from Visual StudioInherited from Visual Studioby designmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state
Description
Type: Bug
Often, programmers will explicitly declare a function extern when it comes from outside this translation unit. This isn't required, but it's a good practice, and one that is very common. However, Intellisense doesn't know this:
extern void a();
Usually, when the function is supposed to be within the translation unit, it will not be declared extern, even though it does have extern linkage according to the standard.
Extension version: 1.31.3
VS Code version: Code 1.113.0 (cfbea10c5ffb233ea9177d34726e6056e89913dc, 2026-03-24T15:07:18+01:00)
OS version: Linux x64 6.8.0-106-generic
Modes:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature: Create Declaration or DefinitionVisual StudioInherited from Visual StudioInherited from Visual Studioby designmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state