Hello everyone.

I'm quite new to Octave and i'm experimenting this strange behavior:
1. i created a .cc file with a simple

#include "omp.h"
...
#pragma omp parallel for
        for (i = 0; i < rowsC; i++)  { ... }
...

2. I compiled it with mkoctfile. I'm using Octave 3.2.4 so i set
manually in the mkoctfile the CXXFLAGS so that:

>>> mkoctfile -p CXXFLAGS
-O2 -g -fopenmp

3. i compiled:

>>> mkoctfile -v maxmin4.cc
g++ -c -fPIC -I/usr/include/octave-3.2.4 -I/usr/include/octave-3.2.4/octave -mi
eee-fp -O2 -g -fopenmp maxmin4.cc -o maxmin4.o
g++ -shared -Wl,-Bsymbolic -o maxmin4.oct maxmin4.o -L/usr/lib/octave-3.2.4 -lo
ctinterp -loctave -lcruft -Wl,-Bsymbolic-functions -llapack -lblas -lfftw3 -lff
tw3f -lreadline -lncurses -ldl -lhdf5 -lz -lm -lgfortranbegin -lgfortran

4. i'm quite sure it should have worked, but when i launch the
function i get this:

>>> tic, maxmin4(A, B), toc
error: /home/w4nderlust/Progetti/Octave Fuzzy/maxmin4.oct: undefined symbol: GO
MP_parallel_start

can help me in finding what's wrong?
Thanks

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to