This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Exporting new libgomp functions
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