You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails under Microsoft's C/C++ Optimizing Compiler Version 19.42.34435 for x64
E cl.exe /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG g\source.c /W0 /link /out:"g\source.exe"
E failed with output
E source.c
E g\source.c(8491): error C2057: expected constant expression
E g\source.c(8491): error C2466: cannot allocate an array of constant size 0
E g\source.c(8491): error C2133: 'dtime': unknown size
E g\source.c(8492): error C2057: expected constant expression
E g\source.c(8492): error C2466: cannot allocate an array of constant size 0
E g\source.c(8492): error C2133: 'dpoint': unknown size
E g\source.c(8493): error C2057: expected constant expression
E g\source.c(8493): error C2466: cannot allocate an array of constant size 0
E g\source.c(8493): error C2133: 'time': unknown size
E g\source.c(8494): error C2057: expected constant expression
E g\source.c(8494): error C2466: cannot allocate an array of constant size 0
E g\source.c(8494): error C2133: 'point': unknown size
E g\source.c(8495): error C2057: expected constant expression
E g\source.c(8495): error C2466: cannot allocate an array of constant size 0
E g\source.c(8495): error C2133: 'plane_number': unknown size
E g\source.c(8496): error C2057: expected constant expression
E g\source.c(8496): error C2466: cannot allocate an array of constant size 0
E g\source.c(8496): error C2133: 'type': unknown size
This method of variable length array allocation would appear to be part of the C99 standard, but according to Microsoft
The compiler doesn't implement several required features of C99, so it isn't possible to specify C99 conformance, either.
Trying either of the supported language specifications, /std:c11 or /std:c17 does not allow an instrument using the polyhedron intersection code to compile for this tested version of the Microsoft C compiler.
Replacing this construction with paired allocation and freeing memory should be more cross-platform friendly.
The text was updated successfully, but these errors were encountered:
Allocating arrays with sizes determined by the value of a struct member, as in,
McCode/mcstas-comps/share/polyhedron.c
Lines 661 to 666 in bdd87f6
fails under Microsoft's C/C++ Optimizing Compiler Version 19.42.34435 for x64
This method of variable length array allocation would appear to be part of the C99 standard, but according to Microsoft
Trying either of the supported language specifications,
/std:c11
or/std:c17
does not allow an instrument using the polyhedron intersection code to compile for this tested version of the Microsoft C compiler.Replacing this construction with paired allocation and freeing memory should be more cross-platform friendly.
The text was updated successfully, but these errors were encountered: