Boost logo

Boost-Build :

From: Denis N. Kononenko (denisn.kononenko_at_[hidden])
Date: 2006-11-22 08:27:47


Hello.

I tried to write a custom generator for translating CORBA IDL files to
C++ sources. But my generator conflicts with generator for MIDL
declared in module midl.jam. This module is included implicitly from
msvc.jam. How can I disable or override this generator?

=== [ ilu.jam ] ===
import generators ;

generators.register-c-compiler ilu.compile.idl : IDL : CPP(%-cpp) HPP(%-hpp) ;
#generators.override msvc.compile.idl : ilu.compile.idl ;

actions compile.idl
{
}

=== [ ilu.jam ] ===

=== [ Jamroot ] ===
import ilu ;

exe hello : main.cpp x.idl ;
=== [ Jamroot ] ===

=== [ OUTPUT ] ==
D:\cpp\workspace\idl>bjam toolset=msvc
Error: ambiguity found when searching for best transformation
Trying to produce type 'OBJ' from:
  - { x.idl.IDL }
Generators that succeeded:
  - msvc.compile.c++
  - msvc.compile.c
First generator produced:
  - { msvc%msvc.compile.c++-x-cpp.obj.OBJ {
ilu%ilu.compile.idl-x-cpp.cpp.CPP { x.idl.IDL } } }
Second generator produced:
  - { msvc%msvc.compile.c-x_i.obj.OBJ { msvc%msvc.compile.idl-x_i.c.C
{ x.idl.IDL } } }
  - { msvc%msvc.compile.c-x_proxy.obj.OBJ {
msvc%msvc.compile.idl-x_proxy.c.C { x.idl.IDL } } }
  - { msvc%msvc.compile.c-x_dlldata.obj.OBJ {
msvc%msvc.compile.idl-x_dlldata.c.C { x.idl.IDL } } }
=== [ OUTPUT ] ==

Boost.Build V2 (Milestone 11)
Boost.Jam 03.1.13

WBR,
Denis.


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