Where is DEFAULTLIB defined

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.
 
B

Ben Voigt [C++ MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top