Help with gcc partial link (option -ar)

horseloverFat gabriel.satanovsky@gmail.com
Tue Feb 22 16:39:00 GMT 2011


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

Ian, if that option did not exist I would have recevied an error message on
the command I issued, wouldn't I?



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?
> 
> 

-- 
View this message in context: http://old.nabble.com/Help-with-gcc-partial-link-%28option--ar%29-tp30983560p30987337.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list