Exporting new libgomp functions

Ian Lance Taylor iant@google.com
Wed Jan 12 22:28:00 GMT 2011


Amittai Aviram <amittai.aviram@yale.edu> writes:

> Thank you!  Unfortunately, this didn't work.  I added my function names to the end of the list for OMP_1.0 "global," i.e.,
>
> OMP_1.0 {
> 	global:
> 		omp_set_num_threads;
> 		[...]
> 		foo;
> 	local:
> 		*;
> };
>
> I rebuilt GCC and again tried to build my application, which makes a call to foo from inside an OpenMP parallel block:
>
> #pragma omp parallel
> {
> 	foo();
> }
>
> And I get the same linker error, an "undefined reference to 'foo'."
>
> I also tried putting my function names into the GOMP_1.0 global list, with the same results. :-(
>
> Is there something else I need to do?  Thanks!

What does readelf -s libgomp.so show you about the symbol foo?

Ian



More information about the Gcc-help mailing list