From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-15 02:45:02
> 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?
Frankly, I don't know. If any of this options are *required* for msvc, we can
put it there. But since you mention that there's global MFC vs. non-MFC
choice, seems like we need a new feature, or a new value of
BTW, what those options do?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk