This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]