On 20 November 2013 17:43, vijay nag wrote: > > Nope Im running a variant of debian linux i686 kernel. Does GCC pick > libgcc from GCC_EXEC_PREFIX ? I am running the program in complete > chroot encironment so that libraries donot collide with host machine. > Are you telling me that Issue is because of wrong version of libgcc ? It's not possible to say, because you've still provided almost no information. How are you building the libraries? What flags are you using to compile and link? Is the exception thrown from one of the libraries? Is the catch in a library or the main program? Have you tried a simple example that just has a single function in a single shared library that throws an exception? If not, why not? Without most of this information we're just guessing randomly what the problem might be.