This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking to a library in mixed C/Fortran 77 code
On Apr 12, 2012, at 6:48 PM, Jonathan Wakely wrote:
> Are you asking why you get the warning? Or how to get rid of it? Or
> something else?
Something else: I am asking how to make it possible for ld to recognize the function in libgomp.so so that I can link dynamically.
> If foo isn't being found in your modified libgomp.so it is probably
> because libgomp.so is being built with symbol-versioning enabled and
> you haven't exported foo from the library as a global symbol.
Great! That's what I was missing. I just added the name "foo" to my libgomp/libgomp.map and rebuilt GCC, and now my application links dynamically! Thanks a lot!
Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com