Registry Mirror
Skip to content

IncludeDirectory points to a directory that does not exist #17

Closed

Description

@sjoelund

In BuildSysPro 3.7.0, seven external functions under IBPSA/ declare

IncludeDirectory="modelica://BuildSysPro/Resources/C-Sources"

for example IBPSA.BoundaryConditions.WeatherData.BaseClasses.getTimeSpanTMY3, IBPSA.Utilities.Cryptographics.sha and IBPSA.Utilities.IO.Files.BaseClasses.FileWriter.

This directory does not exist. The C sources are in IBPSA/Resources/C-Sources. A tool that uses the annotation cannot find getTimeSpan.c or cryptographicsHash.c, and the model does not compile. In OpenModelica, 70 example models fail this way when they are exported as FMUs. #16 reports the same compile error; the file exists, but the annotation names the wrong directory.

Also, these files call functions without the necessary #include. Recent compilers (Clang 16 and later, GCC 14 and later) stop with an error:

File Undeclared functions
fileWriterStructure.c free, malloc, realloc, strcmp, strcpy, strlen
getTimeSpan.c free, malloc, strcat, strcpy, strlen
jsonWriterInit.c free, malloc, realloc, strcmp, strcpy, strlen

Expected:

  • IncludeDirectory="modelica://BuildSysPro/IBPSA/Resources/C-Sources" in the seven annotations.
  • #include <stdlib.h> and #include <string.h> in the three files.

Activity

  1. jeromeferrari commented on Nov 12, 2026

    @jeromeferrari

    thank you Martin,

    this has been fixed in version 4.0 that should be published soon.

    FYI, we plan to clean BSP from this big IBPSA folder in early 2027.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions