Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Link error with optimization turned off on Portenta H7 (Read 84 times)
YW50
Newbies
*
Offline



Posts: 4
Link error with optimization turned off on Portenta H7
Sep 21st, 2022 at 6:53pm
 
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
Back to top
 

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



Posts: 11487
United Kingdom
Re: Link error with optimization turned off on Portenta H7
Reply #1 - Sep 21st, 2022 at 7:50pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
YW50
Newbies
*
Offline



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