Opened 13 years ago

Last modified 13 years ago

#1586 closed defect (fixed)

error message when running makefile

Reported by: jlettau Owned by: jlettau
Priority: blocker Milestone:
Component: Version:
Keywords: Cc: jlettau,

Description

Hello, when running the following model, get the error message below:

 block bugtest
      parameter input Integer n;
      input Boolean b[:];
      output Boolean result;
    algorithm
      result:=true;
      for i in 1:n loop
        if b[i] then
          result:=false;
        end if;
      end for;
    end bugtest;

model aDis
      parameter Integer nIn = 2;
      Boolean bIn[:] = {true, false};
      Boolean b1;
      bugtest bug (n = nIn, b = bIn);
    equation
      b1 = bug.result;      
end aDis;  

error message running makefile:
/*

$ make -f aDis.makefile
gcc  -O3 -falign-functions -msse2 -mfpmath=sse   -I"F:/workspace/OpenModelica/build//include/omc" -I.    -c -o aDis.o aDis.c
aDis.c: In function `functionDAE':
aDis.c:430: error: `boolean' undeclared (first use in this function)
aDis.c:430: error: (Each undeclared identifier is reported only once
aDis.c:430: error: for each function it appears in.)
aDis.c:430: error: syntax error before "tmp1013"
aDis.c:457: error: `tmp1013' undeclared (first use in this function)
make: *** [aDis.o] Error 1

*/

Change History (1)

comment:1 by Martin Sjölund, 13 years ago

Fixed this yesterday, forgot to mark bug resolved :)

Note: See TracTickets for help on using tickets.