Re: Exporting new libgomp functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Amittai Aviram <amittai.aviram@xxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux