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

libsvm compilation in Matlab2016a #46

Open
patrickkwang opened this issue Apr 26, 2016 · 0 comments
Open

libsvm compilation in Matlab2016a #46

patrickkwang opened this issue Apr 26, 2016 · 0 comments
Labels

Comments

@patrickkwang
Copy link
Collaborator

prtSetupMex fails with

error: conflicting types for ‘mwIndex’
typedef int mwIndex;

for each .c file in +prtExternal/+libsvm

Libsvm now has a Github page: https://github.com/cjlin1/libsvm/tree/master/matlab
and adopting the latest version seems to solve this problem. Specifically,
#ifdef MX_API_VER
#if MX_API_VER < 0x07030000
typedef int mwIndex;
#endif
#endif
replaces
#if MX_API_VER < 0x07030000
typedef int mwIndex;
#endif

More testing is required to verify this solution. We should also determine if there is a better way of including dependencies on external software like this.

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

1 participant