For Programmers: Free Programming Magazines  


Home > Archive > VC Language > May 2006 > Automatic Linking problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Automatic Linking problem
AK

2006-05-26, 8:07 am

I have a MFC project in which during compilation of each .cpp file I
get following 2 lines in the output window. This really adds up to
build time. Why is this happening and is there any way to avoid it?

Automatically linking with og903as.lib
Automatically linking with RWUXThemeS.lib

Alex Blekhman

2006-05-28, 4:11 am

AK wrote:
> I have a MFC project in which during compilation of each
> .cpp file I get following 2 lines in the output window.
> This really adds up to build time. Why is this happening
> and is there any way to avoid it?
>
> Automatically linking with og903as.lib
> Automatically linking with RWUXThemeS.lib


Usually it happens because of

#pragma comment( lib, "libname" )

preprocessor directive. It means that some header you use
ensures that necessary libraries are added to project.

You get this message because this (3rd party?) header is
included in your code. That's why you need precompiled
headers: to put there all 3rd party/system headers, so they
will be compiled only once.

HTH
Alex


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com