Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost build and MFC ?
From: Janssen, Olaf ST/HZA-TCE1 (olaf.janssen_at_[hidden])
Date: 2008-12-05 00:48:49

> I would like to build an application with boost build using
> the MFC library,
> i read into the documentation that MFC wasn't supported
> natively. Is it
> possible if i do everything manually ? do i just need to add
> the lib and
> include path and to link the mfc80.lib ? Does anyone already
> manage to do
> that ? Where can i find an example ?

That works straightforward:

# BeltDRIVE XBeltSimGui Build Jamfile

project XBeltSimGui
  : requirements <define>_AFXDLL
  : build-dir ../../Library/XBeltSimGui ;

SOURCES = XBeltSim3DView
          SampleOverloadedDialogPage ;

exe BeltDRIVE : $(SOURCES).cxx XBeltSimGui.rc
     : <toolset>msvc
     : debug release
<define>_AFXDLL means the application uses MFC extension DLLs,
<linkflags>/ENTRY:wWinMainCRTStartup is needed because our applications
are Unicode enabled.

Best regards, Olaf

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at