VC ++ Error

Jun 27, 2003 3 Replies

Hello people,



I tried using the SolidWorks Add-In AppWizard to create a sample Com AddIn Build Procedure. After accepting the defaults, when I try to build the code, I get this error:



LINK : fatal error LNK1104: cannot open file "mfc42u.lib"



I tried setting all the configurations, but did not help. Can you please let me know, what is wrong?



Thanks,



Sushil.


You should have "mfc42u.lib" in C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib otherwise there's something wrong with your install. Which Visual C++/Studio version are you using, BTW?

Philippe Guglielmetti -

formatting link

Using Explorer Search to find out the folder containing this lib file. Add the path into VC library directory: Tools->Options->Directories, change the pulldown list to 'Library files', then add the path. Good luck. Vincent

By default the VC++ install does not place this lib file on your hard drive. If you have the CD in the drive, you will not get the error as it will locate the lib file on the CD. You can manually copy the file to your hard drive and you will be set.

Best Regards,

-- Bob Hanson CEO Custom Programming Unlimited LLC SolidWorks Solution Partner in two categories (SW API training/consulting and SW PDM provider)

formatting link
website (Home of SW API Public Code snippets)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required