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!