Input File Not Found

23 views
Skip to first unread message

Chris

unread,
Dec 14, 2025, 11:14:34 AM (3 days ago) Dec 14
to Cantera Users' Group
I'm working on getting a Cantera example to work in MSVC2022 and, so far, I've been able to get Cantera to link and start. So, it seems that I've linked everything correctly and I'm able to build my solution. However, it cannot find my YAML file. Yes, I've put it in the same directory and I've even added it to the path. (Heck, I've put it in all directories for my code).

My C++ code is straightforward:
auto sol = newSolution("E:/VS 2022/CANTERA Example/CanteraExample/x64/Debug/h2o2.yaml", "ohmech", "none");
auto gas = sol->thermo();

And the runtime error I get is: 
************************************
CanteraError thrown by Application::findInputFile:
Input file  not found in directories
'.',
'E:\VS 2022\CANTERA Example\CanteraExample\x64\Debug',
'D:/bld/cantera-recipe_1763506288013/_h_env/share/cantera/data'

Thus, it's not even reading the h2o2.yaml filename. I've tried it with the directory, without the directory in the text string.

Any help would be appreciated!

Thanks!

Chris

unread,
Dec 14, 2025, 12:41:28 PM (3 days ago) Dec 14
to Cantera Users' Group
OK, so this did not work when I was in Debug mode. However, when I moved to the Release version in MSVC2022, it worked. I thought, maybe, the dlls would only work for the Release version and so it did. 
Reply all
Reply to author
Forward
0 new messages