Sun C++ (version 4.2): This seems to work fine. Sun C++ (version 5): There seems to be a problem with exceptions. If you my simulated exceptions the non-linear optimsation programs hang. If you use the compiler supported exceptions my test_exc program crashes. So take your choice.