Opened 13 years ago
Last modified 12 years ago
#1701 closed defect
error with Modelica.Utilities.Streams.error — at Initial Version
Reported by: | mohamed | Owned by: | mohamed |
---|---|---|---|
Priority: | critical | Milestone: | 1.9.0 |
Component: | Run-time | Version: | |
Keywords: | Cc: | mohamed, Lennart Ochel |
Description
Dear all,
Using the function Modelica.Utilities.Streams.error in this simple example with OMShell 1.8.1 generates some
errors:
model err
parameter Real a=1;
parameter Real b=1;
Real x;
equation
x=a+b;
if (x>1) then Modelica.Utilities.Streams.error("\n %% Error (Modelization)\n");
end if;
end err;
Error: Error building simulator. Buildlog: gcc -I"C:/OpenModelica1.8.1//include/omc" -O0 -falign-functions -msse2 -mfpmath=sse -c -o Modelica_Utilities_Streams_error.o Modelica_Utilities_Streams_error.c
Modelica_Utilities_Streams_error.c:3:1: warning: "MODELICA_ASSERT" redefined
In file included from C:/OpenModelica1.8.1//include/omc/modelica_string.h:35,
from C:/OpenModelica1.8.1//include/omc/modelica.h:82,
from Modelica_Utilities_Streams_error.h:4,
from Modelica_Utilities_Streams_error.c:1:
C:/OpenModelica1.8.1//include/omc/openmodelica.h:267:1: warning: this is the location of the previous definition
Modelica_Utilities_Streams_error.c:4:1: warning: "MODELICA_TERMINATE" redefined
C:/OpenModelica1.8.1//include/omc/openmodelica.h:270:1: warning: this is the location of the previous definition
Modelica_Utilities_Streams_error.c: In function 'in_Modelica_Utilities_Streams_error':
Modelica_Utilities_Streams_error.c:24: error: variable or field 'out' declared void
Modelica_Utilities_Streams_error.c:27: error: void value not ignored as it ought to be
mingw32-make: * [Modelica_Utilities_Streams_error] Error 1
Is something wrong?
Best regards,
mohamed