Thread: Exception handeling

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    95

    Exception handeling

    Does g++ support exception handling if so how do I enable it?

    I tried g++ -fexceptions myfile.cpp

    also in kdevelop I set the compiler varible but was not able to get the prog to compild correctly
    the error message says use the -fexceptions flag but at the samd time the -fno-exceptions flag is on and I don't know how to disable it in kdevelop

  2. #2
    Unregistered
    Guest
    If you mean by exceptions using 'try' 'catch' & 'throw', I have never needed to enable anything. I just use something like:
    g++ myfile.cpp, or probably g++ -g -c myfile.cpp. ( -g turns on debug, -c means compile only, don't link).

  3. #3
    rip1968
    Guest
    That is exactly what I meant. Thanks for your response!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Exception handling in a large project
    By EVOEx in forum C++ Programming
    Replies: 7
    Last Post: 01-25-2009, 07:33 AM
  2. exception handling
    By coletek in forum C++ Programming
    Replies: 2
    Last Post: 01-12-2009, 05:28 PM
  3. Handle C++ exception and structured exception together
    By George2 in forum C++ Programming
    Replies: 2
    Last Post: 01-24-2008, 09:21 PM
  4. Signal and exception handling
    By nts in forum C++ Programming
    Replies: 23
    Last Post: 11-15-2007, 02:36 PM
  5. Problem with the exception class in MINGW
    By indigo0086 in forum C++ Programming
    Replies: 6
    Last Post: 01-20-2007, 01:12 PM