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

Ref: Compiling Modelica file

Ref: Compiling Modelica file

while trying to compile my modelica file from the command line using :
omc +s modelname.mo

no header file is generated i.e, modelname.h ?

Only the following files are generated:
modelname.cpp,modelnmae.makefile, modelname_functions,modelname_init
Please let me know how to fix this problem since i am not able to run the model.

Thanks
Rajiv Singh

Re: Ref: Compiling Modelica file

Why do you need a header file? The model is linked as an executable, not a library ( the model conforms to OPENMODELICAHONE/includes/omc/simulation_runtime.h ).

Just run "make -f modelname.makefile" followed by "./modelname"

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