Skip to content

Instantly share code, notes, and snippets.

@paulkernstock
Created November 18, 2015 14:51
Show Gist options
  • Save paulkernstock/5388404d633d2c659edd to your computer and use it in GitHub Desktop.
Save paulkernstock/5388404d633d2c659edd to your computer and use it in GitHub Desktop.
"Internal error in code generation, please contact support."
dsmodel.c: In function TransiEntDevZone_Sketchbook_pk_Scratch_FooFunction:
dsmodel.c:124:7: error: unknown type name Bad
Bad Type i0_0_0;
^
dsmodel.c:124:17: error: expected =, ,, ;, asm or __attribute__ before i0_0_0
Bad Type i0_0_0;
^
dsmodel.c:133:25: error: i0_0_0 undeclared (first use in this function)
RealAssign (i0_0_0.c_0member, dummy_DymStruc1_1A.c_0member);
^
dsmodel.c:133:25: note: each undeclared identifier is reported only once for each function it appears in
/opt/dymola-2016-x86_64/source/matrixop.c: In function Integer2String:
/opt/dymola-2016-x86_64/source/matrixop.c:3549:2: warning: format %ld expects argument of type long int, but argument 5 has type Integer [-Wformat=]
sprintf(buf,"%*.*ld",(int)minwidth,(int)precision,(int)x);
^
/opt/dymola-2016-x86_64/source/matrixop.c: In function Integer2String2:
/opt/dymola-2016-x86_64/source/matrixop.c:3570:2: warning: format %ld expects argument of type long int, but argument 4 has type Integer [-Wformat=]
sprintf(buf,leftJustified?"%-*ld":"%*ld",(int)minwidth,(int)x);
^
/opt/dymola-2016-x86_64/source/matrixop.c:3570:2: warning: format %ld expects argument of type long int, but argument 4 has type Integer [-Wformat=]
In file included from /opt/dymola-2016-x86_64/source/matrixop.c:3716:0:
/opt/dymola-2016-x86_64/source/localeless.cpp: In function sscanfCx2_underscore:
/opt/dymola-2016-x86_64/source/localeless.cpp:308:2: warning: format %lx expects argument of type long unsigned int *, but argument 3 has type unsigned int * [-Wformat=]
return sscanf(line, "%lx_%lx", a,b);
^
/opt/dymola-2016-x86_64/source/localeless.cpp:308:2: warning: format %lx expects argument of type long unsigned int *, but argument 4 has type unsigned int * [-Wformat=]
/opt/dymola-2016-x86_64/source/localeless.cpp: In function sscanfClu:
/opt/dymola-2016-x86_64/source/localeless.cpp:319:2: warning: format %lu expects argument of type long unsigned int *, but argument 3 has type unsigned int * [-Wformat=]
return sscanf(line, "%lu", a);
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment