Opened 13 years ago
Last modified 12 years ago
#1720 closed defect (fixed)
error FMU
Reported by: | mohamed | Owned by: | mohamed |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | Code Generation | Version: | |
Keywords: | Cc: | mohamed |
Description
Dear all,
I tried to generate the Fmu file of a model whitin OMShell using the
script: translateModelFMU(modelname)
I have the following error generated:
In function 'modelname_fmiInitialize':
C:/OpenModelica1.8.1//include/omc/fmu_model_interface.c:559: error: too few arguments to function 'initialization'
mingw32-make: * [modelnamed_FMU.o] Error 1
Trying to fix this error(few arguments),and by reusing the same script I have this error:
Error: Error building simulator. Buildlog: gcc -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse
-I"C:/OpenModelica1.8.1//include/omc" -I. -c -o ab_FMU.o ab_FMU.c
gcc -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse
-I"C:/OpenModelica1.8.1//include/omc" -I. -c -o ab.o ab.c
gcc -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse
-I"C:/OpenModelica1.8.1//include/omc" -I. -c -o ab_records.o ab_records.c
g++ -shared -I. -o ab.dll ab_FMU.o ab.o ab_records.o -I"C:/OpenModelica1.8.1//include/omc" -I.
-I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse
-L"C:/OpenModelica1.8.1//lib/omc" -lSimulationRuntimeC -linteractive -lregex -lexpat
-static-libgcc -luuid -lole32 -lws2_32 -Wl,-Bstatic -lf2c -Wl,-Bdynamic -Wl,--kill-at
ab_FMU.o:ab_FMU.c:(.text+0x16a2): undefined reference to `functionAliasEquations'
collect2: ld returned 1 exit status
mingw32-make: * [ab.dll] Error 1
Best regards,
Mohamed,
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 12 years ago
Cc: | mohamed, → mohamed |
---|---|
Component: | → Code Generation |
Milestone: | → 1.9.0 |
fixed in the current version.