This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exporting new libgomp functions


On Jan 12, 2011, at 5:27 PM, Ian Lance Taylor wrote:

> 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

It does not occur in either lib32/libgomp.so or lib64/libgomp.so


Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]