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 Link error with optimization turned off on Portenta H7 (Read 829 times)
YW50
Junior Member
**
Offline


Posts: 12
Joined: Sep 21st, 2022
Link error with optimization turned off on Portenta H7
Sep 21st, 2022 at 5:53pm
Print Post  
Building the project with "No optimization" produces an error. "Default optimization" is ok. Full log is attached.

Error linking for board Arduino Portenta H7 (M7 core)                                                                                          (envie_m7)
core.a(USBCDC.cpp.o)*: In function arduino::internal:TongueluggableUSBModule:TongueluggableUSBModule(unsigned char)
Build failed for project 'P3ModuleArduino'
PluggableUSBDevice.h:40: undefined reference to vtable for arduino  internal  PluggableUSBModule
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error with optimization turned off on Portenta H7
Reply #1 - Sep 21st, 2022 at 6:50pm
Print Post  
Some cores support it some do not. Visual Micro can't control or know the outcome, it can only allow you to specify the gcc compiler flags. After that it is up to the design of the core you are using.

A lot of cores struggle with no optimization.
  
Back to top
WWW  
IP Logged
 
YW50
Junior Member
**
Offline


Posts: 12
Joined: Sep 21st, 2022
Re: Link error with optimization turned off on Portenta H7
Reply #2 - Sep 21st, 2022 at 7:13pm
Print Post  
Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint