-
Notifications
You must be signed in to change notification settings - Fork 2
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 on windows #3
base: master
Are you sure you want to change the base?
Conversation
- had to add "return 0;" to yyerror function
Note: C++ compiler was used for all files (including lexwin.yy.cc) references to external symbols had to be adapted accordingly
- compiled with SDK7.1 for 32bit and 64bit systems - checked with matlab R2014b 32bit and 64bit
- all examples work except - ERROR: eventq - handle fails in Matlab - WARNING: zlib not found
…t->int - add Makefiles and make.win.inc - re-add lib.cc (acidentally removed) - switch to C++ compiler as C99 complex numbers are not available in SDK7.1 - use MEX compiler also for library (thus we are sure to use the same options) - ERROR: 'myfunc' identifier not found - WARNING: conversion from 'size_t' to 'int' (we do not use mwSize,mwIndex types)
- we have to declare the external library function 'myfunc' in the *.mw file by including a corresponding *.hh file - -largeArrayDims was not used so far -> origin of earlier warnings
- mwSize is a typedef, #ifndef mwSize will always evaluate to true and mwSize is thus redefined as int - correct this bug by checking for MWSIZE_MAX (from http://www.mathworks.com/matlabcentral/answers/59490-data-type-errors-in-tmwtypes-h-while-compiling-with-mex )
Hello Ralf,
What do you think? |
Dear Alex, I would like to briefly answer your comments/questions in random order
I did not completely understand your comment on mwSize "objects". As far as I understand, mwSize and co are just typedefs for int or size_t and should be used both in C and C++ (see link).
Best regards, Ralf. |
Dear ahbarnett,
thanks a lot for your demo files for MWrap. As I have to work with Windows, I added some Makefiles for NMake to compile Mwap-0.33.3, the examples of Mwrap, as well es your demo files for c and c2domp. They worked for me (Windows Server 2012), but I guess one should cross-check them on a different Windows system and test the Linux and Mac version again, as I had to make some changes in the code. But maybe it is already a good starting point for adding Makefiles for Windows.
Best, RHambach.