Great answer, thanks!

On Wed, Oct 8, 2008 at 16:17, Adrian Pop <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Right now we only use Visual Studio to compile the release binaries:
> - omc.exe, OMNotebook.exe, OMShell.exe
> - also some simulation runtime libraries: c_runtime.lib, vcf2c.lib
>
> It is possible to compile even the generated code with
> Visual Studio. There is nothing weird about the code,
> so only the makefiles should be generated for nmake AND
> you need to compile the c_runtime (the simulation runtime)
> libraries with Visual Studio. The libraries can be compiled
> using the project at: Compiler/VC7/omc/omc.sln
> You will need to get the source code and compile omc yourself.
>
> The makefiles are generated by two
> functions that will need to be changed:
> - SimCodegen.generateMakefile  (Compiler/SimCodegen.mo)
> - Ceval.generateMakefileHeader (Compiler/Ceval.mo)
> - Also Compiler/runtime/systemimpl.c is involved
>  with external declarations for functions:
>  System.getCCompiler    (return gcc should return cl)
>  System.getCXXCompiler  (returns g++ should return cl)
>  System.getLinker       (linking)
>  System.getCFlags       (flags for compilation)
>  System.getLDFlags      (flags for linking)
>
> Cheers,
> Adrian Pop/
>
>
> Alex Schenkman wrote:
>
>> Hello list:
>>
>> Is it possible to let OpenModelica compile with VisualStudio instead of
>> gcc?
>> I see that the file bin/Compile calls make for doing the compilation.
>>
>> Where is this makefile created? Can it be modified?
>> Is there a better way of doing things?
>>
>> The reason for all this trouble is an external binary library that has
>> been compiled with VisualStudio.
>>
>> Thanks in advance, list!
>>
>
>

Reply via email to