Boost logo

Boost-Build :

Subject: [Boost-build] Need help in a jamfile
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-01-14 12:32:46

I am writing jamfile for a Windows COM server project. I followed the
directions in the URL
ld_V2/MIDL_HOWTO, and the code looks like this:


mstypelib MyCOMServerProject-tlb





lib MyCOMServerProject :

                                MyCOMServerProject.rc surrogate.c

                                [ glob-tree *.cpp : .svn units ] :












After a couple of failures, the code finally worked. However, I have to
call bjam twice to get it work. The first build ended up with an error:


 MyCOMServerProject.rc(106) : error RC2135 : file not found:


The problem is that .rc is built before .tlb, so the rc compiler
complained that it could not locate .tlb file.


If I run the same command the second time, the problem did not exist
because the .tlb file was generated.


Is there any workaround to this - to force that mstypbelib is called
before .res file is built?




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