By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

try and catch block not executing in c++ program

P: 2
Sir, I want to execute C++ code for exception handling concept which include try and catch block. But when i am trying to execute that code in turbo c++ then it gives errors like 'undefined symbol try, Undefined symbol throw and catch'.
So how to execute program? Is there any other compile required?
Attached Files
File Type: txt TRY.txt (384 Bytes, 143 views)
Feb 17 '16 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
This code works fine using Visual Studio 2013 BUT I have to enable C++ exceptions in my project properties. Check your compiler to see if there is a similar setting.
Feb 17 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.