As another ubuntu 64-bit user, I'd say your problem is with your matlab install rather than with fieldtrip. You may have inadvertently specified 32-bit instead of 64-bit when you installed matlab. If you type "computer" at the matlab prompt, it should say "GLNXA64". If not, I recommend redoing the matlab installation and making sure you specify your OS as 64-bit. If you still get error message about libstdc++.so, you may need to install that library using the 'synaptic package manger' (in your system menu under administration). A good resource for help if you have further difficulty may be <a href="http://linuxquestions.org">linuxquestions.org</a>. <br>

<br>Best of luck!<br><br><div class="gmail_quote">On Wed, May 25, 2011 at 2:50 AM, Sander Maijers <span dir="ltr"><<a href="mailto:S.N.Maijers@student.ru.nl">S.N.Maijers@student.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Dear readers,<br>
<br>
I am running MATLAB R2011a 32-bit under Ubuntu Linux 10.10 64-bit (Linux thuisrekenaar 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux).<br>
<br>
When I call "ft_timelockstatistics()" with "cfg.mva ={ft_mv_standardizer() ft_mv_svm()};"<br>
<br>
It fails:<br>
<br>
"selected 60 channels<br>
selected 351 time bins<br>
selected 1 frequency bins<br>
using "statistics_crossvalidate" for the statistical testing<br>
initializing random number generator with seed 1<br>
validating 1 dataset(s)<br>
input 1 consists of 439 examples and 21060 features<br>
output 1 consists of 439 examples and 1 features<br>
validating using 5-fold cross-validation<br>
using 5 folds for 1 datasets<br>
dataset 1: validating fold 1 of 5 using 351 training samples and 88 test samples Compiling tprod for first use<br>
/usr/bin/ld: skipping<br>
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.5/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping<br>
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.5/libstdc++.a when searching for -lstdc++ /usr/bin/ld: skipping<br>
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.5/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping<br>
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.5/libstdc++.a when searching for -lstdc++ /usr/bin/ld:<br>
        cannot find -lstdc++ collect2: ld returned 1 exit status<br>
<br>
mex: link of ' "tprod.mexglx"' failed.<br>
<br>
??? Error using ==> tprod at 132 unable to compile MEX version of '/mnt/data1/0/9/data/software/UNIX/scientific/FieldTrip/bin/fieldtrip-read-only/multivariate/external/farquhar/tprod/tprod', please make sure your MEX compiler is set up correctly (try 'mex -setup')."<br>


<br>
<br>
I have followed the instructions on<br>
<a href="https://help.ubuntu.com/community/MATLAB#MEX" target="_blank">https://help.ubuntu.com/community/MATLAB#MEX</a> functions to enable MEX compiling but it was not successful.<br>
<br>
-> Before I singlehandedly bring my operating system configuration into disarray, I would like to learn from you the following. Do you know of ways to use a gcc to compile code written for a 32-bit architecture ona 64-bit machine? Or if necessary another compiler that works under Linux?<br>


-> If such a thing is certainly impossible, are there ways to avoid MEX compiling? Or could someone provide precompiled MEX files that would suit my configuration?<br>
<br>
[*] I have installed the Ubuntu package "ia32-libs" (version 20090808ubuntu9.1)<br>
[*] It seems that the only thing I need is 32-bit binaries for libstdc++. Perhaps I can introduce these in some creative way, but I would like to check with you all first.<br>
<br>
I hope you are willing to help me. As a novice to FieldTrip and even MATLAB, I have encountered many obstacles but I am determined to surmount them.<br>
<br>
Kind regards,<br>
<font color="#888888">Sander Maijers (BA Linguistics student)<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</font></blockquote></div><br>