Re: Help with gcc partial link (option -ar)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Is there a difference between "ar" and "gcc -ar" or are those suppose to
return the same?

Thanks again!


Cedric Roux-4 wrote:
> 
> On 02/22/2011 08:56 AM, horseloverFat wrote:
>> I am trying to use the option -ar, as was originally used on the irix
>> machine.
>> trying the following command:
>>> gcc -ar  -o outcome.a file1.o file2.o
>> Does anyone know what i'm doing wrong here?
> 
> use "ar" directly: ar cr outcome.a file1.o file2.o
> gnu ar is in the binutils package.
> 
> 

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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux