This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hello, With help of the information on the mailing list and in the faqs I have finally managed to build cross compiler on Cygwin for i960-coff (for VxWorks). Now I have a problem with C++ exceptions. I am a newbie in VxWorks (and in embedded systems). C programs seem to work fine. C++ programs work unless they use throw statements to throw exceptions. Throw causes the system to hang. Since in VxWorks a function is run directly (not by means of main() or crt0), the problem might be that the exception handling is not initialized. How do I initialize exception handlinhg? Or more generically, how do I make exception handling to work in this situation? Any help is appresiated The configuration: gcc-2.95 on Cygwin for i960-unknown-coff binutils-2.9.1 newlib-1.8.1 VxWorks 5.1 The program: #include <stdio.h> void hello1() { try { printf("Hello, World\n"); throw 1; // this causes the system to hang // without throw it works as expected } catch(...) { printf("exception\n"); } printf("exiting\n"); } Thanks in advance Artiom Artem Alimarine <aalimari@best.ms.phi
begin:vcard n:Alimarine;Artem tel;home:(+31) 40-2440633 tel;work:(+31) 40-2763078 x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:aalimari@best.ms.philips.com fn:Artem Alimarine end:vcard
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |