Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Fortran link to library not found(Link failure on Big Sur)
Fortran link to library not found [message #1840097] Tue, 06 April 2021 18:27 Go to next message
Robert Lockwood is currently offline Robert LockwoodFriend
Messages: 45
Registered: October 2010
Location: Riverside, CA, USA
Member
I've been unable to discover how to tell the Fortran linker where the OpenMP library is. I've tried several settings using Project->Settings->MacOS Fortran Linker to set paths, with and without the shared library box checked, but they all fail. Here's a link result

/Library/Developer/CommandLineTools/usr/bin/make --no-print-directory main-build
Building target: Parallel
Invoking: MacOS X Fortran Linker
/usr/local/bin/gfortran -static-libgfortran -Wl,-dylib -o "Parallel"  ./par1.o   
Undefined symbols for architecture x86_64:
  "_GOMP_parallel", referenced from:
      _MAIN__ in par1.o
ld: symbol(s) not found for architecture x86_64


I'm using Eclipse Scientific Computing 2021-03 (4-19.0) on a MacBook Pro with up-to-date Big Sur.

Can someone please provide me with an example?

Re: Fortran link to library not found [message #1840105 is a reply to message #1840097] Tue, 06 April 2021 22:30 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Is GOMP installed?
If so, you need to tell the linker where to find it and use it.
https://gcc.gnu.org/projects/gomp/

[Updated on: Wed, 07 April 2021 05:43]

Report message to a moderator

Re: Fortran link to library not found [message #1840111 is a reply to message #1840105] Wed, 07 April 2021 00:38 Go to previous message
Robert Lockwood is currently offline Robert LockwoodFriend
Messages: 45
Registered: October 2010
Location: Riverside, CA, USA
Member
GOMP was installed but I re-installed it JIC.
My problem is that it's been so long since I used a compiled language that I forgot how to set library options -L and -l for ld so as a last resort used man and it worked! Thanks for the link to the OpenMP PDF.
Previous Topic:running minicom in CDT Debug
Next Topic:TPT-Eclipse communication
Goto Forum:
  


Current Time: Sat Dec 04 05:45:39 GMT 2021

Powered by FUDForum. Page generated in 0.02068 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top