Boost logo

Boost-Build :

Subject: Re: [Boost-build] New IDL type windows?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-03-29 05:40:00

Pete Couperus wrote:
> Hello,
> I am using boost-build and was wanting to integrate a tool we have which
> takes .idl files and generates .cxx files. I can register a new type,
> and with the idl extension on linux and integrate this tool fine on
> linux, but on windows, I get (unsurprisingly):
> error: Attempting to specify multiple types for suffix "idl"
> I was looking through the source to see if there was anything along the
> lines of an "unregister" in the types.jam. Is there a standard
> workaround for this (other than changing to use something other than the
> idl extension), or am I missing something?

I think you can use 'type.registered' to check if IDL type is already
registered, and if so, just don't register the type a second time.

Note that a deeper problem is config between generators -- say, if you
use ".idl" inside list of sources, should your generator or builtin
one (midl) be used? For quick testing you can disambiguiate like so:

        cpp myidl : myidl.idl ;

        lib whatever : whatever.cpp myidl ;

This depends on the fact that midl generates C, not CPP targets. Of
course, this workaround is inconvenient. Let me know when you have
everything else working, and we'll talk about a more sensible

Hope this helps,

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