On Sat, 3 Jun 2000, Matthew Brett wrote:
> Dear Michal,
>
> > has anyone managed to compile spm c-mex files under windows NT4 using
> > Cygnus and cygmex scripts? I am sure I strictly followed instrucions
> > from Matthew Brett webpage, but I can not make it work.
> > It seems like Cygnus can't understand cygmex scripts
> > (when I try to compile I got the message: rccompile.sh: line 11: syntax
> > error near unexpected token `do'
> > rccompile.sh: line 11: `for argn; do')
>
> Hi. The first thing to check is whether you have the right webpage. I put up
> and old page a long time back that some people still have the address for.
> The current address is:
>
> http://www.mrc-cbu.cam.ac.uk/Imaging/gnumex20.html
>
> That said, I think you have run into the rather boring text/binary problem,
> where the Cygwin shells have problems with DOS text files. Try stripping out
> the ^M characters from the rccompile.sh file, or redownloading it. I think the
> newest versions of Cygwin bash and sh don't have this problem, but I wouldn't
> swear to it. You might want to make sure that you have the latest versions in
> any case.
>
Great thanks. It solved the problem with the scripts,
however I got this error message now:
spm_add.c: In function `mexFunction':
spm_add.c:107: warning: decimal constant is so large that it is unsigned
and the line 107 is:
minval = -2147483648;
so changing this to unsigned is probably not a good idea.
What should I do to compile this correctly?
best regards
Michal Grodzki
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|