Homebrew How to correctly handle exceptions?

VegaRoXas

Well-Known Member
OP
Member
Joined
Mar 29, 2015
Messages
290
Trophies
0
XP
378
Country
Gambia, The
So I want to handle exceptions, for example an std:out_of_range exception. But how do I do this? I am already using try & catch.
c:/Users/0/Desktop/3DSProjects/BTC/source/main.cpp: In function 'void ApplyTheme
(std::string)':
c:/Users/0/Desktop/3DSProjects/BTC/source/main.cpp:47:9: error: exception handli
ng disabled, use -fexceptions to enable
catch (...) {
^
This happens when I run make. Where do I add the -fexceptions?
 

TheCruel

Developer
Banned
Joined
Dec 6, 2013
Messages
1,350
Trophies
2
XP
3,131
Country
United States
The 3ds (and even all embedded systems) commonly have exceptions disabled. Search your makefile for the "-fno-exceptions" flag and remove it if you want.
 

VegaRoXas

Well-Known Member
OP
Member
Joined
Mar 29, 2015
Messages
290
Trophies
0
XP
378
Country
Gambia, The
The 3ds (and even all embedded systems) commonly have exceptions disabled. Search your makefile for the "-fno-exceptions" flag and remove it if you want.
I removed the flag but my 3ds is still freezing when the exception is being throwed. I try and catched everything where the exception could occur. Any help? :3
It says "terminate called after throwing an instance of 'std::out_of_range' \n terminate called recursively"
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    also as of today i've been on nofap for 3 months
  • BakerMan @ BakerMan:
    so uh, yay me for breaking an addiction that many suffer from like that
  • BigOnYa @ BigOnYa:
    Maybe the spinach was just a metaphor. Maybe it was really meth or crack.
  • K3Nv2 @ K3Nv2:
    Spinach gave him a tumor
  • BunnyPinkie @ BunnyPinkie:
    Plasturion is working on uncensoring imagine makeup artist!
  • BigOnYa @ BigOnYa:
    Then we will recensor it...
  • K3Nv2 @ K3Nv2:
    We don't want to see that shit
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Since when are bunnies pink? :ninja:
  • Veho @ Veho:
    The ones you are hallucinating, or...?
    +2
  • ModernSithLord @ ModernSithLord:
    Why is someone spamming call girls in the user submitted news
  • ModernSithLord @ ModernSithLord:
    really odd
  • K3Nv2 @ K3Nv2:
    Maybe they got alot of girls they want to call
  • rqkaiju2 @ rqkaiju2:
    yeah i just made a post about it
  • ModernSithLord @ ModernSithLord:
    looks like they are all gone
  • K3Nv2 @ K3Nv2:
    Thanks for the update what's tomorrow's weather going to be like
  • ModernSithLord @ ModernSithLord:
    lol really?
  • ModernSithLord @ ModernSithLord:
    im not a weatherman lol
  • K3Nv2 @ K3Nv2:
    I'm a watermelon
  • BakerMan @ BakerMan:
    remember how i said i've been on nofap for 3 months? uhhh i'm not so sure anymore
  • BakerMan @ BakerMan:
    i was scratching my leg on my bed bc it was itchy, and that somehow made me cum
  • BakerMan @ BakerMan:
    so did i break my streak, or was it just premature ejaculation since i was just scratching my itch on my bed?
    BakerMan @ BakerMan: so did i break my streak, or was it just premature ejaculation since i was just scratching my...