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

LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

101 views
Skip to first unread message

Sri Prabu Vontlin

unread,
Jul 13, 2002, 11:26:05 PM7/13/02
to
Hello,

When I complied my VC++6 project in the VS.NET (VC++.Net) I could compile
the project but when linking I got this error:
LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

I have spending lot of time, I couldn't really find exactly what is the
problem.

thanks in advance for any help

Prabu

David Lowndes

unread,
Jul 14, 2002, 4:06:50 AM7/14/02
to
>When I complied my VC++6 project in the VS.NET (VC++.Net) I could compile
>the project but when linking I got this error:
>LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

Prabu,

I'd guess that you're linking in a static library that is built with
VC6. You should re-build not only your main application, but also any
static libraries.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.

Sri Prabu Vontlin

unread,
Jul 14, 2002, 12:19:14 PM7/14/02
to
Dave
Thanks for the reply, I don;'t know how do I rebuild my static librariries?
u mean the dll that are creatred using vc++ 6?

Prabu


"David Lowndes" <dav...@mvps.org> wrote in message
news:h5c2juge8am7u5s0k...@4ax.com...

David Lowndes

unread,
Jul 14, 2002, 2:14:20 PM7/14/02
to
>Thanks for the reply, I don;'t know how do I rebuild my static librariries?

I presumed from the error you got that something in your project was
still referencing the mfc42d library. If you'd built everything with
VC7 this shouldn't be the case, therefore I assumed you may have a
static (non-DLL) library that you use that you haven't re-built with
VC7. Check your project linker input settings to see what libraries
you link to - you're looking for ones that are probably your
organisation's, or a 3'rd party tool.

Sri Prabu Vontlin

unread,
Jul 16, 2002, 12:02:36 PM7/16/02
to
Dave,

You are right., My project is linking to library files, which I don't have
source code, I guess I won't be able to move to VC++7.

I should have the source code for the lib/obj to recomplie and use it in
VC++7! right?

Prabu

"David Lowndes" <dav...@mvps.org> wrote in message

news:bif3ju84esmenc8s5...@4ax.com...

David Lowndes

unread,
Jul 16, 2002, 12:18:28 PM7/16/02
to
>You are right., My project is linking to library files, which I don't have
>source code, I guess I won't be able to move to VC++7.
>
>I should have the source code for the lib/obj to recomplie and use it in
>VC++7! right?

Yes, that's right.

0 new messages