Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dynamic_cast compile error -fno-rtti (Read 4518 times)
davidbal
Junior Member
**
Offline


Posts: 29
Joined: Dec 20th, 2015
Dynamic_cast compile error -fno-rtti
Feb 16th, 2017 at 11:34am
Print Post  
I am using this in my code:

NumericMenuItemInt* p_nmi = dynamic_cast<NumericMenuItemInt*>(p_menu_item);

But I get the following compile error:

'dynamic_cast' not permitted with -fno-rtti


How do you enable this in the compiler options?

Regards,

David
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Dynamic_cast compile error -fno-rtti
Reply #1 - Feb 16th, 2017 at 4:19pm
Print Post  
Hi,

Switch on vmicro>compiler>"verbose" and "show build properties" then build and this will show us which tool chain you have installed and what options it has configured.

You can email the output as a .txt file or post here. Email is info[at]visualmicro.com
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Dynamic_cast compile error -fno-rtti
Reply #2 - Feb 19th, 2017 at 10:50pm
Print Post  
By the way which hardware are you using?




  
Back to top
WWW  
IP Logged
 
davidbal
Junior Member
**
Offline


Posts: 29
Joined: Dec 20th, 2015
Re: Dynamic_cast compile error -fno-rtti
Reply #3 - Feb 21st, 2017 at 1:28pm
Print Post  
Hopefully you have received the log.

I am using an Arduino Mega.

Regards,

David
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Dynamic_cast compile error -fno-rtti
Reply #4 - Feb 21st, 2017 at 1:48pm
Print Post  
If I recall the more recent Arduino mega defs have this setting so try an older tool chain for Avr in board manager
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Dynamic_cast compile error -fno-rtti
Reply #5 - Mar 2nd, 2017 at 2:14pm
Print Post  
Hi,

This error could have been caused if the latest arduino hardware defs were used with an older avr toool installation. 

The recent version(s) of visual micro were updated to detect and resolve the issue. So if yo upgrade you will find that issue is resolved.

The issue only hit a few users but I thought I would mention it in case it was why you raised this thread.

If using visual studio then update visual micro from the gallery

If using atmel studio update using the next-release link on our downloads page

Thanks
« Last Edit: Mar 2nd, 2017 at 2:15pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint