Hello Ingmar and byran,
I tested cantera as you mentioned, but raised error "cantera has no attribute '__version__'". So I uninstalled cantera, turned to use MSVC and exactly followed your instructions, and now it works well with python.
For Visual Studio, I launched it under conda cantera-dev environment (using command 'start devenv') and add cantera & boost into additional library, but raised the following question:
unresolved external symbol "class Cantera::ThermoPhase * __cdecl Cantera::newPhase(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?newPhase@Cantera@@YAPEAVThermoPhase@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V34@@Z)
To solve it, I added cantera.lib (in cantera\lib), but encountered another question:
LNK2038 mismatch detected for '_iterator_debug_level' value '2'(in simpletest.obj)
So I switched to 'Release' mode and compile again, it worked well.
Now I can start my work on cantera. Thanks for your generous help.
Yu