Changes between Initial Version and Version 2 of Ticket #1701


Ignore:
Timestamp:
2013-06-05T11:35:33Z (12 years ago)
Author:
Martin Sjölund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1701

    • Property Cc mohamed, → mohamed
    • Property ComponentBackend
  • Ticket #1701 – Description

    initial v2  
    22
    33Using the function  Modelica.Utilities.Streams.error in this simple example with OMShell 1.8.1 generates some \\errors: \\
     4{{{#!mo
     5model err
     6  parameter Real a=1;
     7  parameter Real b=1;
     8  Real x;
     9equation
     10  x=a+b;
     11  if (x>1) then
     12    Modelica.Utilities.Streams.error("\n %% Error (Modelization)\n");
     13  end if;
     14end err;
     15}}}
    416
    5 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; \\****************************************************** \\
    6 
     17{{{
    718Error: 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  \\
    8 
     19}}}
    920Is something wrong?
    1021