openMP support

Simon Hitzemann simon at hitzemann.org
Wed Jan 14 00:29:19 PST 2009


Hi Michael,

On Wed, January 14, 2009 7:51 am, Michael Dzamba wrote:
> Hi Everyone,
> This is my first time posting here, not sure how this really works.
> I am having trouble compiling and
> application I wrote that uses openMP under OSX.
> I have installed GCC 4.3.2 and tried to compile with
> this, but during linking i get an error,
>
> gcc-mp-4.3  -fopenmp -lm -w -DNDEBUG ../bin/simpleStack.o
> ../bin/nodeArray.o ../bin/reader.o
> ../bin/nodeMarker.o ../bin/suffixTreePrinter.o ../bin/suffixTree.o
> ../bin/readAndScore.o ../bin/score.o
> ../bin/weeder_score.o ../bin/common.o ../bin/display.o ../bin/sad.o
> ../bin/generalTable.o
> ../bin/bitString.o ../bin/suffixTreeSA.o -o ../bin/suffixTreeSA

I didn't have any such problems with gcc-mp-4.3. Please try linking your
result against an OpenMP librarly (e.g. adding -lgomp to your
compiler/linker flags). I guess the errors will go away then.

Regards,
Simon



More information about the macports-users mailing list