Title: | Digital Fortran |
Notice: | Read notes 1.* for important information |
Moderator: | QUARK::LIONEL |
Created: | Thu Jun 01 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1333 |
Total number of notes: | 6734 |
Hello, I am using Fortran DFA410 to compile a program and F77 does not appear to be passing linker flags properly. f77 -Wl,-u\ rich_ -v main.o lib1.a level.o lib2.a -o fromlib1 passes -u rich_ to the linker yet the linker gives: -u rich_: Unknown flag Yes using /usr/lib/cmplrs/cc/ld -o goodlib1 -u rich_ ... The eact output with the -v above produces correct results. Any comments? best regards, Ed Haletky
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1205.1 | you want: -Wf,-u,rich_ | WIDTH::MDAVIS | Mark Davis - compiler maniac | Thu Feb 27 1997 16:45 | 5 |
the driver will then "put a space" between "-u" and "rich_". (Actually, the driver passes 2 separate args.) When you use the quoted space "\ ", the driver passes a single argument '-u rich_' to the linker (not 2 arguments). The linker doesn't understand '-u rich_' as a single arg..... | |||||
1205.2 | MOIRA::FAIMAN | Wandrer, du M�der, du bist zu Haus | Thu Feb 27 1997 17:47 | 8 | |
If you have to pass it using the -Wl mechanism, then the correct syntax would presumably be f77 -Wl,-u,rich_ ... This tells the driver to pass -u and rich_ as two separate argument words. -Neil |