Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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?

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 current/wink

Re: Surprising error. Excuse I'm a newbie

Solved by installing libf2ce-dev package. THX.

There are 0 guests and 0 other users also viewing this topic
You are here: