Group Abstract Group Abstract

Message Boards Message Boards

Use the C Compiler with Mathematica online?

Posted 7 years ago

I have a student online Mathematica account (without a desktop version). I was trying to use the Compile function and compile something to C:

cf = Compile[{{j, _Integer}},(2-If[j==0,1,0])*Integrate[ChebyshevT[j,x]*(2*x+3)*Log[2*x+3]/Sqrt[1-x^2] ,{x,-1,1}]/Pi,CompilationTarget->"C"]

but got the following error:

CCompilerDriver`CreateLibrary::nocomp : A C compiler cannot be found on your system

Does the Wolfram Cloud not support the Compile functio

POSTED BY: Ido Usherovich
4 Replies
Posted 7 years ago
POSTED BY: Ido Usherovich
POSTED BY: Szabolcs Horvát
Posted 7 years ago

The desktop version does allow it? Do you know what can I do if I want to use that piece of code outside of Mathematica? (I understand that if I compile it and export to file I can use it outside, am I wrong?).

POSTED BY: Ido Usherovich
Posted 7 years ago

The Wolfram Public Cloud does not allow you to compile to C with CompilationTarget -> "C". The default "WVM" compilation seems to work, however.

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