Help with gcc partial link (option -ar)
Cedric Roux
cedric.roux@acri-st.fr
Tue Feb 22 16:59:00 GMT 2011
On 02/22/2011 05:32 PM, horseloverFat wrote:
>
> Cedric, it acts as if the types and variables that were defined in the 2
> input files (I named them file1.o and file2.o) were not declared anywhere.
> Namely, running:
>
>> ld output.o file3.o
>
> yeilds the same results as simply running:
>
>> ld file3.o
what results? errors? what messages does ld print?
Maybe a full example would be easier to diagnose
for people on this mailing list.
> Cedric Roux-4 wrote:
>>
>> On 02/22/2011 04:47 PM, horseloverFat wrote:
>>>
>>> Thanks a lot for your help,
>>> yet I already tried that, but simply running "ar" doesn't seem to
>>> generate
>>> the appropriate output for the
>>> final link stage.
>>
>> How does the link stage fails? what errors do you get?
>>
>>
>
More information about the Gcc-help
mailing list