0

So I have a directory of .o files that I am trying to output to a static library using libtool.

From inside the directory containing all the .o files I do the following, where mylibrary.a is located in the parent directory

$ libtool  -static *.o -output ../mylibrary.a

However I keep getting the following error:

unknown option character `o' in: -output

How do I resolve this? I am doing this all on the mac osx terminal

user1855952
  • 1,515
  • 5
  • 26
  • 55

1 Answers1

7

The flag should be -o, not -output.

mipadi
  • 398,885
  • 90
  • 523
  • 479