🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41597

gcc and the -print-file-name option

#41597
From: Edward Hartnett
Date: Tue, 27 Feb 1996 00:00
34 lines
1690 bytes
Having other problems that are driving me ABSOLUTELY INSANE!!!!!! I am
reviewing the gcc documentation in hopes that it will provide some
additional clues to help me figure out what the heck is causing my
current linking problems.

In the course of this I ran across the following in the info pages for
gcc:

`-print-file-name=LIBRARY'
     Print the full absolute name of the library file LIBRARY that
     would be used when linking--and don't do anything else.  With this
     option, GNU CC does not compile or link anything; it just prints
     the file name.

So I changed my compile line to the following:

g++ -I/d5/ejh/include -I/d5/ejh/include/libgriddata-2.3 -L/d5/ejh/lib -Wall -ggdb -DHP9000 -L/d5/ejh/lib -o sak4d-1.5 sak4d.o -levap \
-lgriddata_grads-2.3 -lgriddata_df-2.3 -lgriddata-2.3 \
-print-file-name=libgriddata-2.3.a

(Notice the -print-file-name parameter.)

This is what I get in reply:

libgriddata-2.3.a

But hey, where is the full absolute part?

--
Edward Hartnett                 ejh@larry.gsfc.nasa.gov
* I don't speak for NASA or ARC, I just work for them! *
     Goddard Distributed Active Archive Center (DAAC)
Check out cool Earth Science data at: http://daac.gsfc.nasa.gov/
Technical Details
Message-ID: <EJH.96Feb27111316@larry.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,dda9f16715cf5993,start
X-Google-Attributes: gid11318c,public
From: ejh@larry.gsfc.nasa.gov (Edward Hartnett)
Subject: gcc and the -print-file-name option
Date: 1996/02/27
Message-ID: <EJH.96Feb27111316@larry.gsfc.nasa.gov>
X-Deja-AN: 141324072
organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
followup-to: gnu.gcc.help
newsgroups: gnu.gcc.help