#2510 - Raz - Wed Feb 05, 2003 12:42 pm
I am trying to get a test project to work using C++ with exceptions supported. Without wanting to start another C++ v. C debate, I am looking to get a makefile together that will:
a) compile C++ code (done)
b) allow me to use exceptions
The latter eludes me until now, and I haven't been able to find any pointers (google, etc.) on how to make this work.
I have some code that compiles a try|catch arrangement, but on running it in VisualBoyAdvance, it seems to be bombing out.
This generates text in the logging window saying
start
throw
start
throw
...
...
Anyone have any ideas....
Cheers,
- raz
a) compile C++ code (done)
b) allow me to use exceptions
The latter eludes me until now, and I haven't been able to find any pointers (google, etc.) on how to make this work.
I have some code that compiles a try|catch arrangement, but on running it in VisualBoyAdvance, it seems to be bombing out.
Code: |
int main ()
{ print ("start\n"); int i = 0; try { print ("throw\n"); throw 1; } catch (...) { print ("caught\n"); } if (i == 1) { print ("loop == 1\n"); } else { print ("loop != 1\n"); } while (1); return 0; } |
This generates text in the logging window saying
start
throw
start
throw
...
...
Anyone have any ideas....
Cheers,
- raz