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
Hot Topic (More than 8 Replies) fatal error: cstddef: No such file or directory (Read 3242 times)
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
fatal error: cstddef: No such file or directory
Apr 25th, 2023 at 11:02am
Print Post  
Hi im trying to build my first project using a Portenta H7 with breakout board.    When i complie i get the error and cant find <cstddef>.

The file is there in the package at " 2017q4\arm-none-eabi\include\c++\7.2.1"

Can someone please help me or point me in the correct direction.
Cheers
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: fatal error: cstddef: No such file or directory
Reply #1 - Apr 25th, 2023 at 11:04am
Print Post  
Thanks for the report, we have removed the duplicate post.

Please enable the settings shown at the top of the page, and attach the complete output as a text file so we can review the issue in more detail.
  
Back to top
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #2 - Apr 25th, 2023 at 11:58am
Print Post  
Sorry about the dual posts, cant quite workout where everything is yet.

Attached is my output with 'Show Build Propoerties'  i couldnt find the verbose switch.

Cheers
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: fatal error: cstddef: No such file or directory
Reply #3 - Apr 25th, 2023 at 12:04pm
Print Post  
Thanks for the output, the Verbose switch is on the vMicro > Compiler Menu, 3rd item down from the top.  If you can enable this as well and post the full output again it will help.

Can you provide a simple code example (or a link to one if it is from an online source) which replicates the problem so we can investigate fully?
  
Back to top
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #4 - Apr 25th, 2023 at 12:15pm
Print Post  
Yep found verbose.  recompiled and attached.   also attached my sketch file.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #5 - Apr 25th, 2023 at 12:16pm
Print Post  
also sketch file
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: fatal error: cstddef: No such file or directory
Reply #6 - Apr 25th, 2023 at 12:57pm
Print Post  
Thanks for the logs and sketch, can you confirm where you have downloaded the LiquidCrystal_I2C v1.0.0 Library from?
  
Back to top
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #7 - Apr 25th, 2023 at 12:59pm
Print Post  
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: fatal error: cstddef: No such file or directory
Reply #8 - Apr 25th, 2023 at 1:38pm
Print Post  
Thanks for the location.

The error is coming from the buckotest code files in your project which are commented out in the example provided.

Does your sketch compile with those files removed (or a new project with just the code provided as an example in)??
  
Back to top
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #9 - Apr 25th, 2023 at 9:57pm
Print Post  
Thanks again.   ok deleted buckotest.h and buckotest.cpp, cleaned then built gain.   Got past last errors but now have new ones.   Output attached.

BTW:  in VSCode i would have a main.cpp then my configs would be in config.h and config.cpp .

In VM have a SketchName.ino then my configs would be in config.h and config.cpp ,  is this correct?
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: fatal error: cstddef: No such file or directory
Reply #10 - Apr 26th, 2023 at 9:36am
Print Post  
The only error in the log I can see is at the end, and this is a problem in the Arduino IDE as well:
# Failed to export binary and merge the bootloader (hex): no colon char on the first line character

This generally can be ignored unless you require the merged binary including the bootloader specifically, in which case the board package creator should be consulted.

You are correct about the configs.h/cpp being referenced from the INO in an Arduino compatible project.
  
Back to top
IP Logged
 
DaveBy2
Newbies
*
Offline


Posts: 7
Joined: Apr 20th, 2023
Re: fatal error: cstddef: No such file or directory
Reply #11 - Apr 26th, 2023 at 11:17am
Print Post  
Thanks very much, most helpful
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint