vr3.obj : fatal error LNK1179: invalid or corrupt file: duplicate comdat "?new_wrapped_function_aux@detail@python@boost@@YAPAVfunction@123@U?$return_value_select@X@123@P6AXHH@Z@Z"
Error executing link.exe.
--------------------
I've got a problem with boost.python and the compiler is driving me crazy :(
 
vr3.cpp contains a function that adds methods to a module.
I've got vr1..vr6 that add to this python module.
All six files contain:
try
{
 //code here 
}
 catch(...)
 {
  python::handle_exception(); // Deal with the exception for Python
 }
Sometimes the linker message goes away when I out-comment lines and sometimes only when I remove the try..catch lines.
 
I got no idea what goes wrong. anyone else maybe?
 
Eric