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

compile error on windows: expected initializer before 'teval' #1

Open
AdamCooman opened this issue Jun 7, 2018 · 1 comment
Open

Comments

@AdamCooman
Copy link
Contributor

I tried compiling from matlab 2017a on windows 10 using the MinGW64 Compiler (C).

During compilation, I get the following error

Trying to compile 'mmx_naive', using 
-DWIN_SYSTEM, 
Building with 'MinGW64 Compiler (C++)'.
Compilation of 'mmx_naive' failed with error:
C:\Users\acooman\Documents\mmx\src\mmx.cpp:80:16: error: expected initializer before 'teval'
 DWORD _stdcall teval(void* pn) 
                ^

A solution to fix this can be found on this page:
joncox123/Cortexsys#15

Fix:
In mmx.cpp Line 80 add a double underscore to stdcall instead of a single one:

DWORD __stdcall teval(void* pn)

I don't know whether this will break the other builds, so I hesitate to propose this fix as a commit.

@yuvaltassa
Copy link
Owner

Can you please make a pull request which we'll leave floating for a while?
Different users on different platforms will be able to patch it as required and let us know if it works for them (or not).

Thanks!

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

No branches or pull requests

2 participants