Error calling __builtin_expect inside omp parallel for?
Error calling __builtin_expect inside omp parallel for?
- Subject: Error calling __builtin_expect inside omp parallel for?
- From: Stonewall Ballard <email@hidden>
- Date: Mon, 24 Oct 2011 17:05:03 -0400
In Xcode 4.2 on OS X 10.7.2, I've been intermittently getting an "Undefined Symbol" linker error for "___builtin_expect", caused by a use of __builtin_expect inside the standard "assert" macro, inside an "omp parallel for" block. I'm using the LLVM GCC 4.2 compiler.
I can explicitly use __builtin_expect outside of the parallel block and it works, but inside the block, it causes this undefined symbol error most of the time.
The actual error is:
------
Undefined symbols for architecture x86_64:
"___builtin_expect", referenced from:
__ZN2cvL19bilateralFilter_32fERKNS_3MatERS0_iddiPNS_16ProgressReporterE.omp_fn.0 in smooth.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
------
FWIW, I'm compiling a modified version of the OpenCV bilateralFilter.
Any idea why this is happening?
Thanks.
- Stoney
--
Stonewall Ballard
email@hidden http://stoney.sb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden