Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is DEFAULTLIB defined

3 views
Skip to first unread message

Ed

unread,
Oct 13, 2009, 2:32:08 AM10/13/09
to
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.

Ben Voigt [C++ MVP]

unread,
Oct 13, 2009, 7:34:13 PM10/13/09
to
"Ed" <sea...@gmail.com> wrote in message
news:9ad9ed9d-b080-456f...@i4g2000prm.googlegroups.com...

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.

>
> Thanks.

0 new messages