visual studio – how to fix unity and vs generated cstdlib file with ‘getenv’: is not a member of ‘global namespace’ error

I built my app in unity for the microsoft store, but when I went to publish it through visual studio I got 5 errors (4 in one file) about these lines in cstdlib file

_EXPORT_STD using _CSTD getenv;

_EXPORT_STD using _CSTD system;

the five errors were :

'getenv': is not a member of '`global namespace''   
'getenv': symbol cannot be used in a using-declaration  
'system': is not a member of '`global namespace''   
'system': symbol cannot be used in a using-declaration  
The "CompileXaml" task returned false but did not log an error. 

this was all generated by unity or visual studio, and I’m not sure how to fix it. I searched up the error codes and descriptions and haven’t found anything that I can understand. I wish i could give more detail, but I’m really not sure.

Read more here: Source link