- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Surprising error. Excuse I'm a newbie
Surprising error. Excuse I'm a newbie
Surprising error. Excuse I'm a newbie
First program in Openmodelica and I faced an irritating error:
record SimulationResult
resultFile = "",
simulationOptions = "startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'HelloWorld', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false",
messages = "Simulation failed for model: HelloWorld
Error: Error building simulator. Buildlog: perl /usr/share/omc/scripts/convert_lines.pl HelloWorld.cpp HelloWorld.conv.cpp.tmp
g++ -I. -o HelloWorld HelloWorld.conv.cpp HelloWorld_functions.cpp -lsim -linteractive -I\"/usr/include/omc\" -O3 -falign-functions -march=native -mfpmath=sse -Wl,-Bsymbolic-functions -lsendData -lQtNetwork -lQtCore -lQtGui -lrt -lpthread -L\"/usr/lib/omc\" -lc_runtime -Wl,-Bstatic -lf2c -Wl,-Bdynamic HelloWorld_records.c
/usr/bin/ld: cannot find -lf2c
collect2: ld returned 1 exit status
make: *** [HelloWorld] Error 1
",
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
What's wrong in it? I'm completely in a mess! Is there a package left? Using Ubuntu 10.10
THX!
Re: Surprising error. Excuse I'm a newbie
Code:
Package: omc
Section: math
Architecture: any
Depends: ..., libf2c2, ...
Didn't the package install libf2c for you?
- sjoelund.se
- 1700 Posts
Re: Surprising error. Excuse I'm a newbie
Or actually, I should probably check if libf2c.a is only part of the -dev package... Might be my bad as usual
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Surprising error. Excuse I'm a newbie