[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::fortran

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

1205.0. "Linker commands and -u" by RHETT::HALETKY () Thu Feb 27 1997 15:34

    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.RTitleUserPersonal
Name
DateLines
1205.1you want: -Wf,-u,rich_WIDTH::MDAVISMark Davis - compiler maniacThu Feb 27 1997 16:455
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.2MOIRA::FAIMANWandrer, du M�der, du bist zu HausThu Feb 27 1997 17:478
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