Opened 13 years ago

Last modified 10 years ago

#1585 closed enhancement

error message running makefile — at Initial Version

Reported by: jlettau Owned by: jlettau
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: Lennart Ochel

Description

Hello, when I run the following model I get the errormessages below:

function int2real
  input Integer inp;
  output Real outp;
  Real a = 1.0;
  algorithm
  outp := inp * a;
end int2real;  
  
model bug
  Integer t;
  Boolean b;
  Real r1;
equation
    b = r1>0;
    t = if edge(b) then r1 else t;
    r1=int2real(t); 
end bug;

error message when running the makefile:
/*

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

*/

Change History (0)

Note: See TracTickets for help on using tickets.