Link to home
Start Free TrialLog in
Avatar of santama
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?
ASKER CERTIFIED SOLUTION
Avatar of arunm
arunm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of santama
santama

ASKER

I do not have the library on the system, and I am not including it in the Linker. I have no idea why it is trying to link.
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?
 
Avatar of santama

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.