Opened 7 years ago
Last modified 7 years ago
#4811 assigned defect
array_alloc_real_array error — at Initial Version
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | normal | Milestone: | NeedsInput |
Component: | Code Generation | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: | brix.frederic@… |
Description
Hello ... it's a great tool you have there !!!
Well I have a program that runs on Linux Debian on a 32bit machine but doens't on a W10 64bit .
The program is using vectors, and transpose of matrices.
Here is the error message ... in fact it repeats itself a lot in one code.
So thank you very much for checking this.
I am running this from W10 and not from a cygwin or msys2_shell.cmd window.
WENO.EXA.TestLine02_06inz.c:1740:37: error: incompatible type for argument 3 of 'array_alloc_real_array'
array_alloc_real_array(&tmp11, 2, 0.0, data->localData[0]->realVars[414] /* line021.VV0[7] variable */);
In file included from C:/OpenModelica1.13.0-dev-64bit/include/omc/c/openmodelica_func.h:50:0,
from MODELNAME.EXA.TestLine02_model.h:5,
from MODELNAME.EXA.TestLine02_06inz.c:2:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/util/real_array.h:144:13: note: expected 'real_array_t {aka struct base_array_s}' but argument is of type 'double'
extern void array_alloc_real_array(real_array_t* dest,int n,real_array_t first,...);
WENO.EXA.TestLine02_06inz.c:1741:37: error: incompatible type for argument 3 of 'array_alloc_real_array'
array_alloc_real_array(&tmp12, 2, 0.0, data->localData[0]->realVars[415] /* line021.VV0[8] variable */);
In file included from C:/OpenModelica1.13.0-dev-64bit/include/omc/c/openmodelica_func.h:50:0,
from MODELNAME.EXA.TestLine02_model.h:5,
from MODELNAME.EXA.TestLine02_06inz.c:2:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/util/real_array.h:144:13: note: expected 'real_array_t {aka struct base_array_s}' but argument is of type 'double'
extern void array_alloc_real_array(real_array_t* dest,int n,real_array_t first,...);