[gcc] g++-10 does not link to the correct libgfortran library #11
Replies: 4 comments 6 replies
This comment has been hidden.
This comment has been hidden.
-
Without having a detailed report, it is hard to guess what is happening (“I get fewer errors” is not enough information). Item 1 is the expected error. Item 3 is working fine. Item 2 should work, and in fact is working fine for me:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, but I still don't understand this issue: When I force verbose output when linking my code, it provides the following library search path:
|
Beta Was this translation helpful? Give feedback.
-
One more piece of information regarding this problem: If I use Apple's default I understand that I have not provided a simple code for you to reproduce this problem (I am working with a large and complicated code base). Nevertheless, it seems pretty clear that homebrew's g++ does not properly search for |
Beta Was this translation helpful? Give feedback.
-
I am having problems using homebrew's g++-10 to link to the gfortran library. I suspect that g++-10 is not searching in the correct place to find the homebrew version of this library, or that there is a probably with the library search path.
Here is the problem:
This seems to suggest to me that g++-10 is not linking to the correct gfortran library in (2) above.
If tried to find out which libraries g++-10 looks for with the command
Here I note that the last library path does in fact point to the correct gfortran library. However, I also note that several of the paths before this do not exist. This is just a guess, but it is possible that the search path is corrupted by these missing folders, and g++-10 stops searching the library path as soon as a non-existent folder is found.
Beta Was this translation helpful? Give feedback.
All reactions