🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42670

ld/archives/Hitachi target/DOS host

#42670
From: Joe Martin
Date: Tue, 07 Nov 1995 00:00
27 lines
1567 bytes
How can I get 'ld' to link an archive with an application?  The '-l'
option doesn't seem to work at all.  With an archive named LIBNUKE.A,
using the parameter according to the documentation, '-lnuke', gives
the error 
    "cannot open -lnuke: No such file or directory"
Using '-llibnuke.a' results in the error
    "cannot open -llibnuke.a: No such file or directory"
This archive is in the same directory as the other files successfully
found by the linker.  This directory is in the path.

When the archive is listed with the other object files rather than as
an archive, it seems to be found with no problem.  No error indicates
otherwise.  It doesn't seem to be useful to the linker this way,
however, because the symbols which are located in the archive all end
up undefined.

The utility 'ranlib' runs without error on this archive,  suggesting
that it is valid.  The utility 'nm' gives a symbol listing that looks
exactly as expected.

I am using the GNU Tools for Hitachi H8/300, with H8/300H
architecture.  I have the exact same problem with the GNU Tools for
the Hitachi SH series also.

Thanks for any assistance on this,
Joe Martin
jmartin@atinucleus.com
Technical Details
Message-ID: <47mn15$3me@spectator.cris.com>
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,f91fc6744da6b145,start
X-Google-Attributes: gid11318c,public
From: jmartin@atinucleus.com (Joe Martin)
Subject: ld/archives/Hitachi target/DOS host
Date: 1995/11/07
Message-ID: <47mn15$3me@spectator.cris.com>
X-Deja-AN: 118873045
organization: Accelerated Technology, Inc.
newsgroups: gnu.gcc.help