This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ exception problems in mingw cross compiler


I have a cross compiler toolchain with Linux host and MinGW target built (by me) "the usual way". GCC version is 3.4.6.

I've used this for some time now, and it has seemed to work just fine. However, yesterday I realised that C++ exceptions don't really work. The exception code builds just fine, and exceptions are thrown where appropriate, but it seems like catch() just doesn't catch anything. Not even catch(...). So whenever I run code that raises an exception, I always get a message saying that it has died due to an unhandled exception - even when there is a matching catch() statement that's proven to work on other OSes.

Does anyone have any idea about what might cause this? I mean, are there any well-known issues with exceptions processing? Or anything special I have to keep in mind when building the compiler, in order to get working exceptions?

I know you can't tell me what's wrong with my toolchain unless you see the *exact* build setup, but what I mean to ask is where to start looking for the cause of these problems . - Before I build all over again to be able to see what's going on.

- Toralf

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]