Sign in to follow this  
dimensionX

Link error with VC++ 2005 Express Edition

Recommended Posts

dimensionX    100
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
Modena_au    172
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
dimensionX    100
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
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT


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

#endif // !defined(AFX_STDAFX_H__C328C75A_ED95_4111_A896_5426C8913A6C__INCLUDED_)


StdAfx.cpp
----------
#include "stdafx.h"

How do I get around this using .Net ?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this