-
-
June 20, 2022 at 8:45 am
patrick-clark
SubscriberI am trying to load a UDF into Fluent but I am getting this errorC:\PROGRA~1\ANSYSI~1\ANSYSS~1\v221\fluent\fluent22.1.0\src\main\global.h(9): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\cl.EXE"' : return code '0x2'
I have installed Visual Studio 22 and my Windows OS version is Windows 11. I've downloaded the Windows 11 SDK and I added the location of nmake.exe to my PATH as is the advice I have found online already. I've uninstalled VS 22 several times now as well. -
June 20, 2022 at 9:43 am
Rob
Ansys EmployeeI suspect it's the compiler being newer than Fluent recognises, I think we support VS 2017. Strictly we don't support Win11, but I'm not aware of any issues. What happens if you use the build in CLANG compiler?-
June 20, 2022 at 10:18 am
patrick-clark
SubscriberHow do you use the built in CLANG compiler?
It could quite possibly be the version of VS that I installed so I will try changing versions. So there should be no problem that my Windows is updated to windows 11? I assume that I should also download the windows 10 SDK instead also?
I have many questions, so thank you for answering.
-
-
June 20, 2022 at 1:48 pm
Rob
Ansys EmployeeWhen you compile the UDF there's a tick box "use included compiler". Tick it.
-
June 21, 2022 at 9:26 am
DrAmine
Ansys EmployeeUpdate to the recent version and use the built-in compiler. No need to struggle with VS anymore.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3744
-
2573
-
1793
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.