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

error compiling c++ code. ASUB_EASY_CASE

error compiling c++ code. ASUB_EASY_CASE

I have a model that was OK in OpenModelica 1.5, but now, when I try to simulate it in 1.6, I get the following error message:

    messages = "Simulation failed for model: Catenary.DynamicCurve
Error: Error building simulator. Buildlog: g++ -I. -o Catenary.DynamicCurve Catenary.DynamicCurve.cpp Catenary.DynamicCurve_functions.cpp -L"/home/ogduartev/Proyectos/simula/Catenary/Catenary/../Catenary"   -lsim -linteractive -I"/usr/include/omc" -march=native -mfpmath=sse  -Wl,-Bsymbolic-functions -lsendData -lQtNetwork -lQtCore -lQtGui -lrt -lpthread -L"/usr/lib/omc" -lc_runtime -lf2c Catenary.DynamicCurve_records.c
Catenary.DynamicCurve.cpp: In function ‘void residualFunc38(int*, double*, double*, int*)’:

I guess an include file is missing. ¿any ideas about how to solve it?

Thanks in advance for your help...

Oscar

Re: error compiling c++ code. ASUB_EASY_CASE

You skipped the only interesting part of the error message: what does gcc say comes after residualFunc38(...):?

Re: error compiling c++ code. ASUB_EASY_CASE

this is the whole message:


record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 86400.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'euler', fileNamePrefix = 'Catenary.DynamicCurve', storeInTemp = false, noClean = false, options = '', outputFormat = 'plt'",
    messages = "Simulation failed for model: Catenary.DynamicCurve
Error: Error building simulator. Buildlog: g++ -I. -o Catenary.DynamicCurve Catenary.DynamicCurve.cpp Catenary.DynamicCurve_functions.cpp -L"/home/ogduartev/Proyectos/simula/Catenary/Catenary/../Catenary"   -lsim -linteractive -I"/usr/include/omc" -march=native -mfpmath=sse  -Wl,-Bsymbolic-functions -lsendData -lQtNetwork -lQtCore -lQtGui -lrt -lpthread -L"/usr/lib/omc" -lc_runtime -lf2c Catenary.DynamicCurve_records.c
Catenary.DynamicCurve.cpp: In function ‘void residualFunc38(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2362: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc37(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2372: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc36(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2382: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc35(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2392: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc34(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2402: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc33(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2412: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc32(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2422: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc31(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2432: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc30(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2442: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc29(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2452: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc28(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2462: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc27(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2472: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc26(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2482: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc25(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2492: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc24(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2502: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc23(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2512: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc22(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2522: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc21(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2532: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc20(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2542: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc19(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2552: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘void residualFunc18(int*, double*, double*, int*)’:
Catenary.DynamicCurve.cpp:2562: error: ‘ASUB_EASY_CASE’ was not declared in this scope
Catenary.DynamicCurve.cpp: In function ‘int initial_function()’:
Catenary.DynamicCurve.cpp:3534: warning: format ‘%f’ expects type ‘double’, but argument 3 has type ‘long int’
Catenary.DynamicCurve.cpp: In function ‘int initial_residual()’:
Catenary.DynamicCurve.cpp:3595: error: ‘ASUB_EASY_CASE’ was not declared in this scope
make: *** [Catenary.DynamicCurve] Error 1

Error: Error building simulator. Buildlog: command g++ not found. Check $OPENMODELICAHOME
Error: Error building simulator. Buildlog: command "/usr/share/omc/scripts/Compile" not found. Check $OPENMODELICAHOME
",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;

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