[Eeglablist] importing edf, bdf - memory and speed issues

Robert Oostenveld r.oostenveld at fcdonders.ru.nl
Sat Feb 4 04:41:32 PST 2006


Hi Andreas,

Thanks for the mail. It is an easy to solve problem: line 91  
currently reads
     if (dat_p[i]>8388608)  //2^23
which should be
     if (dat_p[i]>8388608)   /* 2^23 */

The // notation indicates the start of a comment, just like % in  
Matlab. But formally // is only valid in C++ and not in plain C. Many  
C compilers will accept it, but apparently the one that your WindowsXP 
+Matlab combination is using does not accept it. The syntax with / 
* ... */ is vallid according to the formal C specifications.

The same applies to the read_16bit.c file, at the same line.
I'll change it in my code as well.

Robert


On 3-feb-2006, at 19:07, Andreas Widmann wrote:

> Dear Robert, dear list
>
> just my 2 cents on this thread, which is an interesting one.
>
> Sorry Robert, I'm unable to compile your read_24bit.c code. Mex  
> fails with
> Error READ_24BIT.C 93 undefined reference to _NOT
> with MATLAB 7.1.0.246 on 32bit WinXP SP2 and
> read_24bit.c: In function `mexFunction':
> read_24bit.c:91: error: parse error before '/' token
> read_24bit.c: At top level:
> read_24bit.c:102: error: `dat' undeclared here (not in a function)
> read_24bit.c:102: warning: data definition has no type or storage  
> class
> read_24bit.c:103: error: parse error before "return"
> on MATLAB 7.1.0.183 on 32bit SuSE Linux kernel 2.6.8.
> Any idea?




More information about the eeglablist mailing list