santama
asked on
Linking Error Using VC++ 5.0
I am trying to build a program but I keep getting the following error:
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.
Does anyone know why I'm getting this error?
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.
Does anyone know why I'm getting this error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you recently upgraded your version of VC++ from 4.2 to Version 5.0? I think this is the cause of your problem. Have you tried a "rebuild all", your incremental linker may be confused?
ASKER
I found out why it is asking for this library. It's because one of the header files that I'm using has UNICODE defined. I found out that the ud at the end of library name (mfc42ud.lib) stands for unicode-debug. Once I removed the define statement it linked.
Thanks.
Thanks.
ASKER