Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ccompilerdriver]

The tag has no usage guidance.

4
votes
0answers
77 views

How to compile effectively with recent MMA? Global variables in C code, compilation of C code

I have read the generously comprehensive answers by @leonidshifrin and @xzczd to the question How to compile effectively but more than seven years have now passed, and whilst I am sure much remains ...
3
votes
0answers
71 views

What are the recommended best practices for and common pitfalls of using Compile? [duplicate]

As evidenced in my last question there is much I do not know about how to write compilable functions. The basics are clear: one must load the appropriate packages ...
2
votes
1answer
48 views

Target system specification is not available for NVIDIA CUDA Compiler installation

I Installed Mathematica correctly and it indeed found my GPU. My case is exactly the same as : the same issue link However, it is not answered. Does anyone know the reason? My case: ...
0
votes
0answers
65 views

What are the minimal components of Visual Studio 2017 15.8 to install?

I know that there are a few very similar questions to this one on this website. But I still cannot figure out how to setup both on Visual Studio 2017 (what minimal components to install in community ...
7
votes
2answers
166 views

Error during getting CCompilerDriver

I have Window 10, Mathematica 11.3 and Visual Studio Community 2013 (Update 5). If I try to get the package CCOmpilerDriver`, I get follow error: ...
1
vote
0answers
42 views

How to get command line for OpenCLFunctionLoad?

Is there a way how to get the command used to compile my OpenCL kernel, when I use OpenCLFunctionLoad[]? When I use ...
1
vote
1answer
156 views

CreateLibrary fails… path to C header files problem?

How can I tell MMA where to find c header files for compilation? CreateLibrary is returning C1083 can't find stddef.h. Details follow... Windows 10 - 1709 using Visual Studio 2015 (Community Edition, ...
4
votes
0answers
270 views

NVCC CUDA Compiler not showing up

I am trying to follow instructions for "Compiling for CUDA", so that I can write my own functions to run on the GPU. However, CUDAFunctionLoad gives me errors. ...
24
votes
1answer
1k views

Getting Compile to work with Visual Studio 2017 Community Edition

The new Visual Studio is out since a week and I tried to get it to work with Mathematica (versions 11.0 and 11.1). However, the usual tricks for working with a new VS version fail here. Related ...
3
votes
1answer
112 views

Can't run CreateExecutable example

I'm trying to run this example from the Wolfram website, on Linux Mint 16. ...
9
votes
1answer
133 views

How to cross-compile LibraryLink code for multi-platform distribution

I am running Mathematica on a Windows 10 machine and I would like to develop a package for public distribution. Most of the package will be Mathematica code, but some timing-critical parts should be ...
0
votes
0answers
273 views

Using shared library in LibraryLink

Recently I've asked a question somewhat related to this[*], but I consider this an actual new problem. So I hope it is indeed appropriate to ask you again. I have created a shared C++ library (with ...
1
vote
1answer
230 views

LibraryFunctionLoad for multivariate C++ function containing several arguments

I've been working on a project for quite a long time, and now when I finally want to use it in praxis I don't know how. I have created a shared library (libcwv.so) with a header (cwv.so) with nvidia'...
4
votes
1answer
127 views

Using VS Studio Compiler with MMA 10.1 [closed]

Win7-64 bit. Visual Studio 2015 Community Edition I am unable to get MMA to recognise the VS Compiler to compile functions to C. I had installed VS Studio and the C++ compiler (and test compiled the ...
10
votes
1answer
955 views

Installing Microsoft C compiler on Windows 10

On Windows 7 I was using Microsoft Visual C++ as CCompilerDriver. For this, the minimal solution is to install Microsoft .Net and then Microsoft SDK-7.1. There is no need to install Microsoft Visual ...
1
vote
1answer
71 views

System Modeler 4 on Mac X El Capitan does not work

I have installed the Mac version of System Modeler 4 in a MacBook Pro with OS X El Capitan . Also the Coder has been installed version 7 . But the System modeler can not find the C ++ compiler not is ...
4
votes
0answers
106 views

Mathematica version 10.2 does not find C compiler [duplicate]

I am running Mathematica 10.2 on Windows 7 (64bit) and when I want to use the C compiler I get the message: A C compiler cannot be found on your system. Please consult the documentation to learn ...
7
votes
1answer
99 views

Closing over array values makes Compile choke with CompilationTarget -> “C”

When I attempt to Compile a closure which contains an array of the appropriate type, it works just fine with ...
3
votes
1answer
222 views

CCompile Problems

Operating System: Windows 8.1 Mathematica: 8 In possession of: Visual Studio 2013 and 2015 Had to alter the visual studios driver file within CCompilerDriver application, add-on so that it found the ...
1
vote
0answers
676 views

How to get Mathematica to compile with target C? [closed]

I have been trying to compile some functions in mathematica with target C for speed. basically when I try: ...
3
votes
0answers
263 views

Generating Mathlink executables by CCompilerDriver

I'm trying to generate a MathLink executable by CCompilerDriver package. The MathLink ...
4
votes
0answers
402 views

C compiler options passed by Mathematica

What options can be used for compilation using Compile or CreateExecutable in Mathematica and where can one find details on the ...
1
vote
1answer
74 views

Setup default temporal directories for CCompilerDriver

Problem: I have cyrylic symbols in my $UserBaseDirectory. As result temporal directory for CreateExecutable...
2
votes
2answers
510 views

Problem setting up C compiler on a Mac

This is a follow up to this question. I am using Mma 10 on a MacBook-Pro with OS-X Mavericks. After reading the documentation under CCompilerDriver/tutorial/SpecificCompilers I did the following: <...
12
votes
2answers
2k views

MinGW-64 and CompilationTarget -> “C”: can't make library

I'm trying to set up my new Windows 8.1 tablet to compile Mathematica (9.0.1) functions to C, using the MinGW-64 compiler. I have it set up so that the following works: ...
6
votes
0answers
476 views

How to force the compilation language to be C++ (not C) in CreateExecutable or CreateLibrary

I'm trying to speed up a section of a Mathematica 9.0.1 notebook by performing some calculations in C++ with the Cilk Plus and Threading Building Blocks tools available for the Intel C++ 14.0 compiler ...
2
votes
1answer
241 views

Mathematica Compiled Functions - additional functions

Mathematica supports an exact list of compilable functions: They are listed here: List of compilable functions. However, I would need to add the following functions: ToExpression, StringFreeQ, ...
21
votes
2answers
3k views

C compilation not working with Visual Studio 2013

I'm running Mathematica 9 on a 64 bit Windows 8.1 laptop. I'm having no luck getting C compilation to work. ...
1
vote
0answers
398 views

Cannot compile OpenGL code in Mathematica (vc2010-windows 8.1)

LinkError of OpenGL My enviroment is windows 8.1 x64, Mathematica 9.0.1, opengl 1.1 ...
10
votes
0answers
251 views

Check whether a working CCompiler is installed

Let me give a bit background: As many of my answers imply, I often use the auto-parallelization (meaning, that Mathematica distributes the calculation automatically over several cores when list-...
2
votes
4answers
2k views

System Modeler can't find g++ in Mac OS X Mavericks

I've just purchased SystemModeler (Mac OS X Mavericks) but can't verify the g++ compiler path. I assume it's in the Xcode package but nothing I've tried seems to work, for example, Applications/...
8
votes
1answer
236 views

How to use MacPorts' gcc with CreateLibrary?

Short version: What's the simplest way to use MacPorts' gcc with CreateLibrary? Long version: CreateLibrary uses ...
2
votes
1answer
251 views

Supported options for compiling LibraryLink code with VC++

I have to generate an interface to Mathematica for a fairly large library. I would like to use LibraryLink, as the generation seems much simpler. The platform is Windows (VS 2012), and I am ...
15
votes
2answers
522 views

Using Boost with CreateLibrary

I was looking at the answer of Leonid of Faster alternatives for DayOfWeek and wanted to see how hard it would be to do something similar in C++ using an external library like Boost. I tried to ...
14
votes
3answers
1k views

What compilers are “suitable” for CompilationTarget->“C”?

The documentation for CompilationTarget says, "if you do not have a suitable C compiler then you will not be able to set CompilationTarget to C". Well at this time, I don't have a compiler installed ...
17
votes
1answer
2k views

How to install and configure Intel C++ Compiler for Mathematica correctly?

I wish to try the trial version of the latest Intel C++ Compiler for Windows with Mathematica. I have downloaded the current version of Intel® C++ Composer XE 2011 for Windows and installed only the "...
26
votes
1answer
5k views

How do I get Mathematica to recognize a C compiler on a 64-bit Windows machine?

Mathematica does not recognize any C compiler on my computer. I run Mathematica 8.0.4.0 on Windows 7. I've tried to make sure various C compilers are installed on my computer, but I'm not sure how to ...
2
votes
2answers
6k views

Visual Studio Express 2010 on x86-64: libcmt.lib missing

The CCompilerDriver documentation explains that to use visual studio express on 64-bit targets, it's necessary to install the windows SDK after installing visual studio. I have done this, first ...