Installation Error: fatal error C1083: Cannot open include file: 'stdio.h'

251 views
Skip to first unread message

Yuri Piffer

unread,
Mar 12, 2023, 7:36:37 AM3/12/23
to energyplus-fmu
As the "Installation and Configuration" doc says to ask for help if  the compiler did not accept some statement in source code file get-address-size.c, here I am:

This is the error I get: 
C:\EnergyPlusToFMU-v3.1.0\Scripts\win>compile-c.bat  ..\..\SourceCode\utility\get-address-size.c
get-address-size.c
..\..\SourceCode\utility\get-address-size.c(13): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Failed to compile ..\..\SourceCode\utility\get-address-size.c

I already reinstalled virtual studio many times (with different combinations). Please find attached the screenshot of the last installation config. 

OS: Windows 10

Virtual Studio
12.PNG
11.PNG

Thierry Nouidui

unread,
Mar 14, 2023, 7:09:06 AM3/14/23
to Yuri Piffer, energyplus-fmu
I haven't tried compiling E+ToFMU with Visual Studio 2022 yet. I will give it a try and see if I can reproduce the error.

--
You received this message because you are subscribed to the Google Groups "energyplus-fmu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to energyplus-fm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/energyplus-fmu/d0486a3b-f382-4b28-8319-d6f4eb54e3cdn%40googlegroups.com.


--
Prof. Thierry Nouidui
Nouidui Consulting Group
https://nouidui.com/index.php/consulting/

Thierry Nouidui

unread,
Mar 17, 2023, 3:27:12 AM3/17/23
to Yuri Piffer, energyplus-fmu
While I am investigating the issue, I suggest using an older compiler.
So far I have not experienced the error you are sharing with Visual Studio Community 2019.
You may install it and configure your batch files to point to that version instead (e.g. compiler-cpp.bat and other batch files should be set to point to C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat to generate 64-bit FMUs).

I have also managed to compile E+FMU with Visual Studio Express 2015 for Windows Desktop (https://visualstudio.microsoft.com/vs/older-downloads/) by setting the batch files to point to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat to generate 64-bit FMUs.

You may try any of those two options and let me know if that works. This may be a temporary solution that should not have any adverse impact on your system setting while debugging is ongoing.

Pascal Yamb

unread,
May 29, 2024, 8:03:42 PM5/29/24
to energyplus-fmu
Buy your psychedelic products fast and safe delivery 

https://t.me/healingmeds
https://t.me/healingmeds
https://t.me/healingmeds

> ✔US-US Delivery 
> ✔Fast Shipping 
> ✔Secure Payment Options 
> ✔100% Satisfaction Guaranteed 
> ✔3 Days Refund Policy 
> ✔100% Money-Back if any issue with the product 
> ✔Shipping Service: Express/Standard/Economy 
> ✔Estimated Delivery Time: Express & 3-5  Days 
> ✔Discounts: Get up to 20% off 

https://t.me/healingmeds
https://t.me/healingmeds
https://t.me/healingmeds
Reply all
Reply to author
Forward
0 new messages