# Boost-Build :

From: brock_peabody (bpyama_at_[hidden])
Date: 2003-10-14 12:47:55

If I try to build a console project using MFC with VC 7.1, I get all
kinds of unresolved externals, such as:

nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external
symbol __mbctype

I can fix the problem by using Win32 instead of MFC (by including
windows.h instead of afx.h), but I can't use that solution - your
libraries have to be either all MFC or all not-MFC.

I can also fix it by adding:

/D "_LIB" /D "_AFXDLL" /D "_MBCS"

to the compiler commands in tools\msvc.jam, which is OK for me since
all of my projects have to use MFC.

Is there a more correct way to do this?

Still learning,

Brock