Boost logo

Boost-Build :

Subject: [Boost-build] Import Library from Def File - MSVC
From: Richard B. Opsal, Ph.D. (ropsal_at_[hidden])
Date: 2011-02-04 21:23:07


I am using Microsoft Visual C++ 2008.

In my JAM file, I would like to add statement as follows:

lib myImportLib : Exports.Def ;

where Exports.Def is a module definition file such as:

LIBRARY A_DLL_NAME
EXPORTS
          myFunc1
          myFunc2
          myFunc3

With MSVC, I use this command to create import library:

lib /DEF:Exports.Def /MACHINE:x86 /OUT:myImportLib

Currently, Boost Build doesn't allow such a library creation
syntax.

What is my best route for adding this functionality? I would
guess the MSVC.JAM file would need to be altered. At this point,
this seems a bit daunting to me. Or is there another (better)
approach?

I welcome your insights!

P.S., The above is usefully, especially if you only have access
to a DLL file. This mechanism provides a nice way to access the
DLL exports.

-- 
  Richard B. Opsal, Ph.D.
  Adron Systems LLC
  http://adronsystems.com/
  http://www.adronsystems.com/contactus.htm



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