﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3376	Command prompt under Windows	Rüdiger Franke	Adeel Asghar	"OpenModelica installs under Windows the omc compiler and a complete MinGW environment. Unfortunately it is hard to use these tools.

For example: simulate `Modelica.Blocks.Examples.PID_Controller` from OMEdit. Then open a cmd prompt, go to OMEdit's work folder and retype the compilation command:
{{{
""C:\OpenModelica1.9.2\\MinGW\bin\mingw32-make.exe"" -j4 -f Modelica.Blocks.Examples.PID_Controller.makefile
}}}
This raises the linker errors:
{{{
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lexpat
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lexpat
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -llapack-mingw
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -ltmglib-mingw
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lblas-mingw
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lf2c
collect2.exe: error: ld returned 1 exit status
}}}

Couldn't OpenModelica prepare a command prompt with appropriate environment variables set, so that omc.exe and model compilation work?

Visual Studio is a good reference for best practices under Windows. Each version provides under Start a menu item ""Visual Studio Command Prompt"".
"	enhancement	closed	high	1.9.4	Installation program	trunk	fixed		
