Link Warning message question

I'm using VC++ 6.0 and MFC. My workspace
has 2 projects -- my main one, and one
which is a JPEG lib that is pointed to
from codeguru.  I think its since I added that JPEG project into my stuff
that I sometimes (why not always?) get
the linker warning: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

Of course, if I follow this advice and
put in the /NODEFAULTLIB I get a zillion
undefineds, so...

It may mean that something else is wrong
with my setup.  However, I see no adverse effects -- everything seems to
work fine, so I've just been ignoring the warning, but now I'm getting ready to export my app, I'm wondering if I
should worry about this??  What do you
think?


tullheadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
That is because the JPEG lib contains the CRT library and it results more than one copy of the CRT library. You may ignore it. See

Linker Tools Warning LNK4098
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/lnk4098.htm

HOWTO: Link with the Correct C Run-Time (CRT) Library
http://support.microsoft.com/support/kb/articles/q140/5/84.asp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikeblasCommented:
Actually, it's not always safe to ignore this warning message.

..B ekiM
0
chensuCommented:
>it's not always safe to ignore this warning message.

Not always. But it is OK in this case. Am I right?
0
mikeblasCommented:
> But it is OK in this case. Am I right?

There's no way to tell. But, odds are, it isn't.  If you mix flavors of CRTL in the same image, you're most likely to get memory management problems.

tullhead used /NODEFAULTLIB and got lots of unresolved externals because he didn't bother to eplicitly name the CRTL version he wanted, and therefore all CRTL functions were unresolved.

..B ekiM
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.