I have an appl in VC 6++ that I have ported from my old m/c to VISTA..
On my laptop, I have installed VC++ 6, vs 2008 Exp, VS2008 Std version. I have not been able to successfully compile and link my appl in VS 2008 Exp/VS 2008 Std because of the problem relating to not able to find mfc42d.lib. So, instead I continue to use VC++ 6 for the time being. This was working fine and now for no apparent reason I am getting this error when I build my appln.
Linking...
mfco42d.lib(MFCO42D.DLL) : error LNK2001: unresolved external symbol MFCO42D_NULL_THUNK_DATA
Debug/Process.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Process.exe - 2 error(s), 0 warning(s)
So now I have two problems:
1.0 Unable to switch over to VS2008 because of mfc42d.lib not found
2.0 work around with VC++ 6 is now no good because of a new problem
Will greatly appreciate help. I know there is a great deal of experience on this in the forum.
Many thanks in anticipation.
|
Go4Expert Member
|
|
| 24Sep2008,20:25 | #2 |
|
Trying linking to different library instead of mfco42d.lib
Just search for file of name mfco*.lib Linking to a correct library should solve the problem. |
|
Go4Expert Member
|
|
| 24Sep2008,20:27 | #3 |
|
Usually moving from lower version to higher has some problem but in my experience latest/correct version of library should solve the problem
|
|
Light Poster
|
|
| 7Oct2008,15:14 | #4 |
|
Thanks for your reply.
I am still getting this problem. 1>------ Build started: Project: Process, Configuration: Debug Win32 ------ 1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'mfc42d.lib' 1>Build log was saved at "file://c:\Visual2008FTADev\Process\Debug\BuildLog.htm" 1>Process - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== when I try to build my appl in VS2008. I will greatly appreciate it if you can give a more specific steps guidance as to how to remove the reference to the offending file 'mfc42d.lib'. Thanks However, I will greatly appreciate a little more detail on how to find reference to |
|
Go4Expert Member
|
|
| 7Oct2008,22:50 | #5 |
|
Just right click on your project, go to settings/properties ....see linker setting....see the linked libraries....if mfc42d.lib is there in libraries to link to. remove it from there.....just look for mfc42d.lib in you project setting, i do not have vc 6 now else i would have told you the exact.....
I think this might be the solution.... |
|
Light Poster
|
|
| 15Oct2008,14:59 | #6 |
|
Thanks to Cosmic_egg for last reply. That really helped.
I had a number of thrid party .libs that I was linking to. Once, I rebuild these .lib under VS2008, the problem relating to LINK : fatal error LNK1104: cannot open file 'mfc42d.lib' was resolved and now I am able to load my project and work with VS 2008. |
