Back to the main page.

Bug 885 - compiled ft_getopt fails when the input is a config object

Reported 2011-08-22 21:20:00 +0200
Modified 2011-09-14 14:33:32 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Jörn M. Horschig
Depends on:
See also:

Robert Oostenveld - 2011-08-22 21:20:08 +0200

fieldtrip uses the @config object to track the cfg options. That means that ft_getopt or keyval (or any other function) should use cfg just as if it were a normal structure. However, the compiled version fails on a cfg object.

Robert Oostenveld - 2011-08-22 21:20:40 +0200

*** Bug 867 has been marked as a duplicate of this bug. ***

Robert Oostenveld - 2011-08-22 22:01:24 +0200

I fixed the problem in the mex file (not really nice, but functional) and tested on linux 64 and mac 32 and 64. Still to be done is to compile the new mex file on windows 32 and 64 and linux 32.

Robert Oostenveld - 2011-08-25 21:39:18 +0200

Could you please compile it on w32, w64 and 32 bit linux?

Jörn M. Horschig - 2011-08-29 13:06:36 +0200

done, hope it all works

Robert Oostenveld - 2011-09-14 14:33:32 +0200

I closed all the bugs that were in the status RESOLVED. This includes the ones that we just discussed in the weekly fieldtrip meeting, but also the bugs that we did not discuss.