moinakg/pcompress

undefined reference to `GOMP_parallel'

Opened this issue · 4 comments

g++ -pthread -fopenmp  -fopenmp -fPIC -o buildtmp/pcompress main.o -ldl -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lbz2 -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lz -lm -L./bsc -lbsc -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lcrypto -lrt -Larchive/libarchive/.libs -larchive  -Wl,-R/usr/lib,--enable-new-dtags -Wl,-R/usr/lib64,--enable-new-dtags -L/usr/src/wavpack-4.70.0/src/.libs -lwavpack -L. -lpcompress
./libpcompress.so: undefined reference to `GOMP_parallel'
collect2: error: ld returned 1 exit status
make: *** [buildtmp/pcompress] Error 1

But I see -fopenmp included twice.

gcc, g++ 4.7

Which platform? Is this on Debian?

Yes. Wheezy amd64.

Not on jessie (stable 3 days ago).