Cairo
Cairo

Reputation: 341

How do I link a static library in a cpp source file?

There's a #pragma command to link in a library from the source file rather than from the project settings. I just can't seem to remember it.

Can anyone here remind me?

Thanks

Upvotes: 2

Views: 309

Answers (2)

Abubacker Nainamohamed
Abubacker Nainamohamed

Reputation: 4797

You mean this thing #pragma comment(lib, "Library")

Upvotes: 2

John Knoeller
John Knoeller

Reputation: 34148

#pragma comment(lib, "library")

http://msdn.microsoft.com/en-us/library/7f0aews7(VS.80).aspx

Upvotes: 6

Related Questions