Skip to content

“Definition not found” even when function is explicitly extern #14331

@cD1rtX3

Description

@cD1rtX3

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();
Image

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:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions