Hello, according to the information on Microsoft website https://learn.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps Environment variables functions are not available for UWP applications.
But currently mingw-w64 puts libapi-ms-win-crt-environment-l1-1-0.a import library into the final libucrtapp.a library. I have feeling that this is incorrect and import library libapi-ms-win-crt-environment-l1-1-0.a should not be present in the mingw-w64-crt/lib-common/ucrtapp.mri. Just to note that in msvcr120_app.dll are missing all env functions. There is just _environ symbol but it is NULL, same as 3rd argument passed to main(). As the msvcr120_app.dll is another library specially for Store / UWP apps, this can be an another proof that env functions are not available. Could you check if the api-ms-win-crt-environment-l1-1-0.dll is allowed to use in UWP and if it should be part of our libucrtapp.a library? _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
