TalkingCode
TalkingCode

Reputation: 13557

Simple question about #import

Is #import or #include a job that is handled by the complier or by the linker?

Upvotes: 4

Views: 143

Answers (2)

Andrey
Andrey

Reputation: 60075

preprocessor -> compiler -> linker

# is handled by first - preprocessor

Upvotes: 4

sepp2k
sepp2k

Reputation: 370357

Anything that starts with # is a preprocessor directive and is expanded by the preprocessor, which is a step that happens before compilation.

Upvotes: 13

Related Questions