Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the MEX files in Windows is not possible at this time #1

Open
amanoel opened this issue Jul 18, 2014 · 1 comment
Open

Compiling the MEX files in Windows is not possible at this time #1

amanoel opened this issue Jul 18, 2014 · 1 comment
Assignees
Labels

Comments

@amanoel
Copy link
Contributor

amanoel commented Jul 18, 2014

The only compiler officially supported by MATLAB in Windows is Visual C++, and it doesn't allow for the C99 standard. There are some minor incompatibilities in our code that can be easily fixed. However, two functions we employ, erfc and log1p, are not available in the Visual C++ standard libraries (they are only available in C99 implementations of math.h)
There are a few solutions I can think of

  1. using the implementations of erfc and log1p provided by some other library (e.g. Boost), but that would add extra dependencies;
  2. using some other compiler. I was able to generate 64bit binaries in Windows with TDM-GCC and Gnumex. The user would have to set 'em up, though.
  3. providing 32/64bit binaries for Windows users.

Thanks to Marina Pulley for reporting the issue.

@amanoel amanoel self-assigned this Jul 18, 2014
@eric-tramel
Copy link
Owner

I don't really like the idea of providing the binaries directly, and I think we might have some problems making sure those are updated consistently in the future (mostly just because we don't all have working Windows distros :)

Perhaps Option 1 would be better long term strategy while Option 2 should probably be included in the Readme files to make sure that Windows users know where to go to attempt to build the code until Option 1 is finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants