Where is DEFAULTLIB defined

  • Thread starter Thread starter Ed
  • Start date Start date
E

Ed

Hi, guys,
When I use VC 2008 to build programs, compiler reports libirc.lib not
found during the link phase.

And I found libirc.lib is one of DEFAULTLIB.

So where is DEFAULTLIB defined? I didn't manually define it in my
project.

Thanks.
 
Ed said:
Hi, guys,
When I use VC 2008 to build programs, compiler reports libirc.lib not
found during the link phase.

And I found libirc.lib is one of DEFAULTLIB.

So where is DEFAULTLIB defined? I didn't manually define it in my
project.

The compiler adds a couple things depending on your project settings:

libcmt or libcmtd, controlled by Use debug or release runtime library
mfc*, controlled by Use MFC in a static library, DLL, or no use of MFC
kernel32.lib, user32.lib, etc (if you didn't compile with /clr)

But, any header file can also add things using #pragma comment. Since
libirc isn't one I've ever heard of, I'm pretty sure the compiler isn't
doing it and that means one of your header files is.
 
Back
Top