ExternalMedia icon indicating copy to clipboard operation
ExternalMedia copied to clipboard

dsmodel.c(77): fatal error C1083: externalmedialib.h: No such file or directory

Open wuss1854 opened this issue 1 year ago • 1 comments

Hello there: When I call the ExternalMedia library with Dymola and compile my model, I get an error, and the Dymola messages is as follows: `Compilation of test1 failed.

Note: There were translation warnings that might explain the problem.

Compiler message:

Compiling and linking the model (Visual C++).

dsmodel.c dsmodel.c(77): fatal error C1083: externalmedialib.h: No such file or directory

Error generating Dymosim.` This only occurs when using Dymola; compiling the model with OpenModelica does not cause this error!

wuss1854 avatar Aug 07 '24 06:08 wuss1854

@wuss1854 ExternalMedia 4.0.0 works for me in Dymola 2024x. Please provide more details to reproduce the issue:

  • a test model that fails
  • versions of ExternalMedia, Dymola, and operating system
  • which C compiler are you using in Dymola

Thanks!

casella avatar Aug 07 '24 12:08 casella

Find out you are a XJTUer, so forgive me I would like to speak Chinese 你好,我也遇到你这个问题了,你后来解决了么

Henry7528 avatar Jun 15 '25 14:06 Henry7528

Find out you are a XJTUer, so forgive me I would like to speak Chinese 你好,我也遇到你这个问题了,你后来解决了么

@Henry7528 时间有点久了记不太清当时是什么问题,后来是如何解决的,但是现在可以编译了

wuss1854 avatar Jun 20 '25 14:06 wuss1854

I just solve this issue by adding some environment variables in system variable

%SYSTEMROOT%\System32\WindowsPowerShell\v1.0
%SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem \bin64

Henry7528 avatar Aug 31 '25 08:08 Henry7528