Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to generate some C code, and the reference here says that Mathematica comes with a mdefs.h file, but I cannot find it. Is there a place where I can download it?

share|improve this question
In my version of Mathematica, mdefs.h is residing in the directory $InstallationDirectory/SystemFiles/IncludeFiles/C/ – Heike May 25 '12 at 8:09
Found it, thanks! – Dmitri Nesteruk May 25 '12 at 8:31

As it turns out, the answer is $InstallationDirectory/SystemFiles/IncludeFiles/C/. Thanks Heike!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.