gnupic: gplink missing symbols
Subject:
Re: gplink missing symbols
From:
"Vangelis Rokas" ####@####.####
Date:
21 Jan 2005 09:48:57 +0000
Message-Id: <009701c4ff9e$689afd40$47f0673e@Odyssey>
----- Original Message -----
From: "Chris Emerson" ####@####.####
To: "Vangelis Rokas" ####@####.####
Cc: ####@####.####
Subject: Re: gplink missing symbols
>> gplink -m -o out main.o lib1.lib lib2.lib
>>
>> Suppose that lib1.lib contains the symbol foo1
>> and lib2.lib uses this symbol.
>>
>> gplink exits with missing symbol error message.
>
> Other C linkers (including the GNU linker) do exactly the same, so I'm
> not really sure this is really a bug. Pass the libraries in the other
> order...
What if both libraries depend on symbols defined on the other. In fact
its not so easy to change the module order at will, since I am working
with a compiler, and there is no way to know from the beginning the
symbol dependencies.
regards,
Vangelis