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
                 <user-interface>gui
                 <toolset>msvc:<linkflags>/ENTRY:wWinMainCRTStartup
  : build-dir ../../Library/XBeltSimGui ;

SOURCES = XBeltSim3DView
          XBeltSimApplication
          XBeltSimChildFrame
          XBeltSimDocument
          XBeltSimGuiFunctions
          XBeltSimGraphicsServer
          XBeltSimMainFrame
          XBeltSimResultView
          XBeltSimTreeView
          XBeltSimMDILogo
          XBeltSimClipBoard
          XBeltSimAboutDialog
          XBeltSimHlinkctl
          XBeltSimProductSelectionDialog
          XBeltSimContextMenuServer
          SampleOverloadedDialogPage ;

exe BeltDRIVE : $(SOURCES).cxx XBeltSimGui.rc
     : <toolset>msvc
       <user-interface>gui:<define>_WINDOWS
       <linkflags>/map
     : 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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk