Message Boards Message Boards

0
|
8352 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Compile[ ] and Combinatorica

Posted 9 years ago

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

POSTED BY: Bruce Colletti
2 Replies
Posted 9 years ago

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

POSTED BY: Bruce Colletti

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.

POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract