Greetings,
We use PLECS standalone on Ubuntu Linux and Windows workstations. We have a model that employs a subsystem that includes a C-Script with external files referenced in code declarations. I built our control source code into a .dll which is loaded by the external files referenced in C-Script code declarations. Everything works fine when the model is run in PLECS on a Windows workstation.
I also build our control source code into a Linux .so. The external files referenced in C-Script code declarations use simple conditional compile directives to generate code wrapper to access and call into the .so or .dll when the model is opened on PLECS running on Linux or Windows workstations respectively. Unfortunately the external .c file compilation fails in PLECS on Linux workstations with the following error.
PLECS needs to add the include path “/usr/include/x86_64-linux-gnu” to it’s build system to be able to resolve the reference to “bits/wordsize.h”.
How can I correct this issue?
Is there a way for me to add compiler command line options to the C-Script build? I tried exporting
export C_INCLUDE_PATH=“/usr/include/x86_64-linux-gnu:$C_INCLUDE_PATH”
in the shell that I started PLECS but it did not help and I wouldn’t consider it an ideal permanent solution even if it did work.
Thank you in advance for taking a look.
