diff --git a/Cantera/clib/src/ctmultiphase.cpp b/Cantera/clib/src/ctmultiphase.cpp index 67e827f4f..ffc35f80c 100644 --- a/Cantera/clib/src/ctmultiphase.cpp +++ b/Cantera/clib/src/ctmultiphase.cpp @@ -230,8 +230,15 @@ extern "C" { doublereal rtol, int maxsteps, int maxiter, int loglevel) { try { +#ifdef WITH_VCSNONIDEAL int retn = vcs_equilibrate(*_mix(i), XY, estimateEquil, printLvl, solver, rtol, maxsteps, maxiter, loglevel); +#else + int retn = -1; + throw CanteraError("mix_vcs_equilibrate", + "The VCS NonIdeal equilibrium solver isn't compiled in\n" + " To use this feature add export WITH_VCS_NONIDEAL='y' to the preconfig file"); +#endif return (double) retn; } catch (CanteraError) {