# PLECS unable to find rpc.h file in macos

**URL:** <https://forum.plexim.com/t/plecs-unable-to-find-rpc-h-file-in-macos/1264>\
**Category:** PLECS\
**Tags:** c-script, windows, macbook\
**Created:** [August 23, 2023, 5:11pm UTC](https://forum.plexim.com/t/plecs-unable-to-find-rpc-h-file-in-macos/1264 "2023-08-23T17:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartik\_Veeramraju](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kartik\_Veeramraju](https://forum.plexim.com/u/Kartik_Veeramraju)\
**Post date:** [August 23, 2023, 5:11pm UTC](https://forum.plexim.com/t/plecs-unable-to-find-rpc-h-file-in-macos/1264/1 "2023-08-23T17:11:51Z")

</div>

I recently started using plecs on macos. I have my simulation files originally in a windows computer. I am working on co-simulation between code file written and saved in the same folder as the PLECS simulation file. In windows machine I was able to easily run simulations. But when I export the same simulation files onto my macbook, the C-Script returns a compilation error saying it couldnt find the rpc.h file that one of my files included. Can you tell me how to solve this?

---

<div class="post-metadata">

**Author:** ![Oliver\_Schwartz](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/oliver_schwartz/32/6_2.png) [@Oliver\_Schwartz](https://forum.plexim.com/u/Oliver_Schwartz)\
**Post date:** [August 25, 2023, 11:59am UTC](https://forum.plexim.com/t/plecs-unable-to-find-rpc-h-file-in-macos/1264/2 "2023-08-25T11:59:14Z")

</div>

rpc.h is a Windows system include file. It is used to access functions that are implemented in the Windows operating system.

MacOS does not offer the same functions and the rpc.h file would be useless on MacOS. You will need to port the Windows-specific code in your C-script to MacOS specific code.
