🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50201

Order of archives seems to matter with gcc (gld)

#50201
From: V.O.F. Roana Technologies
Date: Wed, 13 Oct 1993 11:22
31 lines
2047 bytes
Hi everyone!

  I Have a problem that really annoys me, because I cannot continue
developing until this is solved.

  We are working on an implementation of a networking protocol, and we
follow the OSI model as strictly as possible. Therefore, we make an archive
of the code of all layers. When I am working in one of the layers, I want
to have archives of other layers present.

  gcc -o bridge mylayer.o -L../lib -lphy -lfrm -lmac -lsde -lllc -lbdg

  produces an error, which says that the linker cannot resolve the functions
from a specific layer (say, for example, sde_init(), sde_send(), sde_recv()
and sde_shutdown() cannot be resolved). But I am sure that they are there!
Strange thing is, that when I change the order of the libraries, this
seems to matter to the linker, because it then cannot resolve the functions
from another layer (e.g. bdg_init(), bdg_shutdown(), bdg_send() and bdg_recv()
cannot be resolved). 

  The past few weeks the shuffling of libraries finally resulted in a 
working binary, but as things get more and more complex, I don't seem to
be able to produce a binary anymore!!!!!!! Am I doing something wrong?
Should I use some flag to produce other object-files and/or archives?

  BTW: Problem exists both when using gld and the sunos 4.1.1 ld linker.

grtnx,
andre

roana@cs.utwente.nl
Technical Details
Message-ID: <1993Oct13.122221@cs.utwente.nl>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uknet!mcsun!sun4nl!utciva.civ.utwente.nl!infnews.cs.utwente.nl!infnews!roana

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,af7e6408ac0ec6f7,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-10-13 04:52:56 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uknet!mcsun!sun4nl!utciva.civ.utwente.nl!infnews.cs.utwente.nl!infnews!roana
From: roana@cs.utwente.nl (V.O.F. Roana Technologies)
Subject: Order of archives seems to matter with gcc (gld)
Message-ID: <1993Oct13.122221@cs.utwente.nl>
Sender: usenet@cs.utwente.nl
Nntp-Posting-Host: plymouth.cs.utwente.nl
Organization: Twente University, Dept. of Computer Science
Date: Wed, 13 Oct 1993 11:22:21 GMT
Lines: 33