Compile[ ] and Combinatorica

Re Mathematica 10.2 under Windows 8.1.

My g = Compile[…] code calls the Combinatorica function NextPermutation. And so Export[“xyz.c”, g] warns:

CCodeGenerate::wmreq: The expression NextPermutation requires Mathematica to be evaluated.   The function will be generated but can be expected to fail with a nonzero error code when executed. >>

Thereafter in a C compiler, I will alter xyz.c and then create an executable. That’s if I can – where is the Combinatorica library (if it exists at all) to which the external compiler would link?

Thanks.

Bruce

There is no such library. Functions which require the Mathematica kernel in order to be evaluated (in other words, any function for which the generated WVM code contains a call to MainEvaluate as shown by CompilePrint) cannot be compiled to stand-alone C.

Thank you, Illian, for this reply and an earlier one to another topic.