Opened 14 years ago
Last modified 14 years ago
#1588 closed defect (fixed)
another error message while running a makefile
| Reported by: | jlettau | Owned by: | jlettau |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: | jlettau, |
Description
Hello, here happens another error with the makefile of the code below:
block blogg
parameter input Integer n;
input Boolean t[:];
output Boolean b;
algorithm
b:=true;
for i in 1:n loop
if t[i] then
b:=false;
end if;
end for;
end blogg;
model acD
parameter Integer nIn = 0;
parameter Integer n =0;
Real tIn[n];
blogg glog(n=nIn,t=tIn);
Boolean bOut;
equation
bOut = glog.b;
end acD;
$ make -f acDis.makefile gcc -O3 -falign-functions -msse2 -mfpmath=sse -I"F:/workspace/OpenModelica/build//include/omc" -I. acDis.c: In function `functionDAE': acDis.c:427: error: `$Pglog$Pt' undeclared (first use in this function) acDis.c:427: error: (Each undeclared identifier is reported only once acDis.c:427: error: for each function it appears in.) make: *** [acDis.o] Error 1
Note:
See TracTickets
for help on using tickets.

I guess any reference to a variable v with a 0-dimension can be replaced by an empty array constructor (since 0-dimension variables are removed from the flat Modelica)