﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3894	dladdr failed: not available on Windows failed	Volker Waurich	Adrian Pop	"Hi,

I get the following error {{{dladdr failed: not available on Windows failed}}} for almost any models I want to simulate on my Windows machine. I built omc using msys2 32bit.

The function call {{{System.launchParallelTasks(numThreads, codegenFuncs, runCodegenFunc));}}} in SimCodeMain.mo causes this error. Setting num_threads to a value less than 6 works for my 6-core. But default is 12.

So something in the c-codegeneration fails:

Errors: Failed to build model: Modelica.Blocks.Examples.BooleanNetwork1Error: Failed to write to file (not open)
Error: Template error: A template call failed (a call with 0 parameters: dladdr failed: not available on Windows). One possible reason could be that a template imported function ca
ll failed (which should not happen for functions called from within template code; templates preserve pure 'match'/non-failing semantics).

As a result the following generated files are empty:
{{{*_15syn.c, *_11mix.h, *._includes.h}}} and hence, compilation fails due to missing references.





"	defect	closed	high	Future	Code Generation		fixed		Martin Sjölund Adrian Pop Willi Braun Niklas Worschech
