Jump to content
  • Advertisement
Sign in to follow this  

Link error with VC++ 2005 Express Edition

This topic is 5082 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I installed the new VC++ 2005 Express edition and the Platform SDK. When I build my application, it gives me link errors. LNK1104: cannot open file 'nafxcwd.lib' - When using MFC Static Library LNK1104: cannot open file 'mfc42d.lib' - When using MFC Shared DLL I searched for these files on my computer but couldn't find them. I had seen some posts that reinstall might help. Guess what, did that too. With VC6 I created a Win32 Application project and set to "MFC Static Library" and is worked just fine. I guess the web install doesn't install these files.

Share this post

Link to post
Share on other sites
It was my understanding (through the rumour mill, mind you), that the express edition does not support ATL or MFC, as they are really trying to push people towards the .NET framework. Though like I said, I didn't actually read that on microsofts site or anything.

Share this post

Link to post
Share on other sites
I am actually not using MFC. I just have a StdAfx.h & .cpp files.

#if !defined(AFX_STDAFX_H__C328C75A_ED95_4111_A896_5426C8913A6C__INCLUDED_)
#define AFX_STDAFX_H__C328C75A_ED95_4111_A896_5426C8913A6C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#include <afxcmn.h> // MFC support for Windows Common Controls

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__C328C75A_ED95_4111_A896_5426C8913A6C__INCLUDED_)

#include "stdafx.h"

How do I get around this using .Net ?

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
You need to download the Platform SDK and then setup the Include, Bin, and Lib directories properly inside Visual C++ Express.

Platform SDK provides MFC, ATL, CRT, and GL libraries and includes.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!