Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-11-18 15:13:37


Reece Dunn wrote:
>> I have attached a patch to add PCH support to the msvc toolset. This

I have one more problem. I use the message compiler patch I posted some
time ago. It converts a single 'xxx.mc' file into a header 'xxx.h' and a
resource file 'xxx.rc'. Now if I try to compile the following code it fails:

pch stdafx : stdafx.hpp stdafx.cpp ;

lib core
     :
         core
         main.cpp
         core-messages.mc
     :
         ...
     ;

The reason why it fail is because 'stdafx.hpp' includes
'core-messages.h' and obviously it cannot be generated. The workaround
would be the following:

rc core-messages
     :
         core-messages.mc
     ;

pch stdafx
     :
         stdafx.hpp stdafx.cpp
     :
         <implicit-dependency>core-messages
     ;

lib core
     :
         core
         main.cpp
         core-messages
     :
         <implicit-dependency>core-messages
         ...
     ;

The problem is that this also does not work because
'<implicit-dependency>core-messages' in the rule 'stdafx' does not add
the build directory to the list of includes. Now I'm trying to figure
out why this happens but I'm stuck. :(

Best regards/Venlig hilsen,
   Alexey Pakhunov.

 


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