I am using VS2005 Professional to build an ATL dll that is self registered by the IDE. The project uses boost::regex so I needed to ad the directory containing libboost_regex-vc80-mt-gd-1_35.lib to Linker->Additional Include Directories to get it to compile.

But now I am getting the following error at the self register stage, the dll registers fine when the boost::regex code is commented out or I use boost::xpressive instead.

Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry.

Please tell me how to fix TIA